COMP 151: Intro to Programming, Spring 2024

This syllabus is subject to change based on specific class needs, especially the schedule. Significant deviations will be discussed in class. Individual exceptions to the policies and schedule are granted only in cases of true emergency. Please make arrangements with me if an emergency arises.

Logistics

Content

Description

Introduction to Programming teaches basic programming skills that are applicable to a variety of disciplines and also acts as a bridge to continued studies in computer science. Students will work with the Python programming language in order to solve basic problems. By the end of the course students will be able to read and develop computer programs utilizing the following programming concepts: basic data types and encoding, variables and scope, array and list data structures, if statements and conditional execution, loops and iteration, functions, and object types.

Goals:

  1. Learn what computer science is
  2. Get excited about programming
  3. Develop problem-solving skills
  4. Widen your view about the disciplines computer science is important to
  5. Learn the basics of the Python programming language
  6. Express solutions to problems in the form of a program

Sources

Our textbook is Foundations of Python Programming. It is completely online and free, although I highly suggest making a small donation if you can afford it – providing the interactive exercises requires money to host the servers that run the code!

Software/Accounts

There are several apps/accounts we will be using for this course.

  1. An account at Runestone Academy. Your account will be automatically created and you will be emailed your account information at the start of the semester.

  2. During class I will often ask interactive questions using the Socrative app. Students will need to create a free student account at https://socrative.com. While you can participate in Socrative sessions via a web browser, I recommend using the free iOS or Android apps available here.

  3. Though most assignments will use the interactive textbook, I might give some assignments/projects via Replit, an online development service. Students will receive, complete, and submit assignments all via the website. If/when Replit is used, you will receive instructions on how to create an account and join our course.

Assessment

Assignments and Workload

The weekly workload for this course will vary by student and by week but should be about 12.5 hours per week on average. The following table provides a rough estimate of the distribution of time over different course components for a 16 week semester, as well as detailing the type, amount, and relative value of all assignments.

Category Amount Final Grade Weight Time/Week (Hours)
Lectures ~41 10% (Participation) 2.5
Labs 8–10 10% 3
Homework 6–8 10% 1
Exam Study - - 1
Exams 4–5 30% -
Projects 2 30% 3
Reading Assignments/Practice - 10% 2
Total     12.5

Reading Assignments: Before most classes there will be an assigned reading in the interactive textbook. Your progress on these is automatically recorded and visible to me.

Practice: In addition to the reading assignments, each week you have review practice questions to complete. These can be found by clicking 👤 > Practice on Runestone. Each week you must complete the questions on at least 3 days.

Exams: All exams are weighted equally and will take approximately the same amount of time. Exams will generally focus on material covered since the previous exam but will be in some sense cumulative due to the nature of programming. Unless stated otherwise, assume that exams will be pencil and paper and that computers will not be available during the exam period.

Projects: Two larger scale programming projects will be undertaken during the semester. These projects will be individual efforts and will require much more effort than the programs written in lab or as part of homework. Students can expect to have two weeks from the time of the project assignment to complete the project. One or more lab periods will be dedicated to work on the project. It is highly recommend that all students make ample use of the time given on these projects.

Labs: Most weeks will include an in-class lab assignment. Students will often be placed into pairs for “paired programming”, a programming practice where each member of the group takes turns typing while the other group member helps look for typos, bugs, and otherwise assists in the design of the code. Each group will submit their work at the end of the lab period regardless of the overall completeness of the assignment. The goal is to make good constructive progress on the assignment. Full credit can and will be given on unfinished work so long as it can be executed to complete some portion of the given task, shows evidence of purposeful progress, and the group made full use of the lab period.

Homework: Students will be assigned a set of homework problems, usually from the current chapter of the book. These problems are meant to guide reading, prepare the student for in-class problems, and survey the material covered by the exam. Each student will turn in their own set of solutions.

Grading

Your final grade is based on a weighted average of particular assignment categories. You can estimate your current grade based on your scores and these weights. You may always visit the instructor outside of class to discuss your current standing. Assignments and final grades use a standard grading scale shown below and will not be curved except in rare cases when deemed necessary by the instructor.

This courses uses a standard grading scale. Assignments and final grades will not be curved except in rare cases when its deemed necessary by the instructor. Percentage grades translate to letter grades as follows:

Score Grade
94–100 A
90–93 A-
88–89 B+
82–87 B
80–81 B-
78–79 C+
72–77 C
70–71 C-
68–69 D+
62–67 D
60–61 D-
0–59 F

You are always welcome to challenge a grade that you feel is unfair or calculated incorrectly. Mistakes made in your favor will never be corrected to lower your grade. Mistakes made not in your favor will be corrected. Basically, after the initial grading your score can only go up as the result of a challenge*.

You are always welcome to challenge a grade that you feel is unfair or calculated incorrectly. Mistakes made in your favor will never be corrected to lower your grade. Mistakes made not in your favor will be corrected. Basically, after the initial grading your score can only go up as the result of a challenge.

Lab and homework assignments are graded on a simple 3 point scale, marked with (in decreasing order) a check-plus, check, or check minus. Your final grade for these two assignment categories is then based on the respective averages.

Your participation grade is based on a variety of activities, but especially daily use of Socrative for in-class question and answer sessions. Questions will cover portions of the text that were assigned as reading and will range from simple checks to see if the reading was done to more challenging questions that follow from a close examination of the reading. For the most part, the only requirement is to provide an answer to every question and participate in the resultant discussions. On occasion, questions will be evaluated for their correctness and performance on 3 these questions will also factor into the course participation grade. Students who do the reading and start the homework as soon as possible will have very little to worry about.

While there is no strict attendance policy, the course participation grade is based in large part on engagement with socrative. Absent students cannot participate in socrative sessions. Students should avoid unexcused absences, as defined in the college-wide absence policy. Whenever possible, let the instructor know of the absence before it occurs. When unexcused absences do occur, it is the student’s responsibility to make up for the lost class time and to seek the permission of the instructor to hand-in or complete assignments that are late due to an unexcused absence.

This course is designed around the assumption that students engage in new ideas before they’re covered in class meetings. This means doing assigned reading, taking a stab at homework problems, and as a result coming to class and lab with some understand about a new idea or, just as likely, with a host of questions about something encountered in the reading and homework. Not attending class, skipping lab, and putting off work to the point that an extension is needed are signs that a student isn’t holding up their end of the bargain and is not prepared to participate in class.

Policies

Schedule

The following tentative calendar should give you a feel for how work is distributed throughout the semester. Assignments and events are listed in the week they are due or when they occur. This calendar is subject to change based on the circumstances of the course.

Note: All readings should be done before the class period in which they are listed below.

Date Topic Assignment and Readings
Wed 01/17 (Week 1) Intro and Logistics  
Fri 01/19 Misc. Exercises FOPP 1: General Intro
Mon 01/22 (Week 2) Operating, Unfolding Exercises FOPP 2.1-2.9
Mon 01/22 (lab) Lab 01: A Preview of the End Goal Homework 1 out
Wed 01/24 String and Type Exercises FOPP 2.10-2.16
Fri 01/26 Debugging Exercises FOPP 3.1-3.8
Mon 01/29 (Week 3) Modules; Intro to Turtle FOPP 4.1-4.4
Mon 01/29 (lab) Lab 02: Input-Compute-Ouput Homework 2 out
Wed 01/31 Turtle, OO, and for loops FOPP 5
Fri 02/02 Turtle Exercises  
Mon 02/05 (Week 4) Sequences FOPP 6.1-6.5
Mon 02/05 (lab) Lab 03: Turtle (No Homework)
Wed 02/07 Exam 1 Review  
Fri 02/09 Exam 1  
Mon 02/12 (Week 5) Sequence Methods 6.6-6.9
Mon 02/12 (lab) Lab 04: Generating a Password Homework 3 out
Wed 02/14 Sequence Exercises; Exam 1 Solutions  
Fri 02/16 More About For Loops FOPP 7.1-7.7
Mon 02/19 (Week 6) Exercises  
Mon 02/19 (lab) Lab 05: Computing Statistics with Kiva Data Project 1 out
Wed 02/21 Lab 05 Solutions/Review  
Fri 02/23 Functions I 7.9,7.10,7.12 AND 12.1-12.5
Mon 02/26 (Week 7) Conditionals I FOPP 8.1-8.7
Mon 02/26 (lab) (Reserved for Project 1)  
Wed 02/28 More Conditionals, Exercises FOPP 8.8-8.11
Fri 03/01 Project Questions, Conditional Exercises  
Mon 03/04 (Week 8) Functions II, Function Exercises 12.6-12.15
Mon 03/04 (lab) (Reserved for Project 1)  
Wed 03/06 Exam 2 Review  
Fri 03/08 Exam 2  
(Mon 03/11 – Fri 03/15) (Spring Break)  
Mon 03/18 (Week 9) Exam 2 and Project 1 Solutions/Debrief  
Mon 03/18 (lab) Lab 06: Turtles, Strings, and L-Systems Homework 4 out
Wed 03/20 Function Review, Transforming Sequences I FOPP 9.1-9.7
Fri 03/22 Transforming Sequences II FOPP 9.8-9.14
Mon 03/25 (Week 10) Hwk04 Presentations, Nested Iteration FOPP 7.8-7.12
Mon 03/25 (lab) Lab 07: Substitution Ciphers Homework 5 out
Wed 03/27 More Iteration, Exercises FOPP 14
(Fri 03/29) (Easter Break)  
(Mon 04/01) (Week 11) (Easter Break)  
Mon 04/01 (lab) (Easter Break)  
Wed 04/03 Exam 3 Review  
Fri 04/05 Exam 3  
Mon 04/08 (Week 12) Exam 3 Solutions  
Mon 04/08 (lab) Lab 08: Image Processing Homework 6 out
Wed 04/10 Image Processing  
Fri 04/12 Dictionaries I FOPP 11.1-11.4
Mon 04/15 (Week 13) Dictionaries II FOPP 11.5-11.9
Mon 04/15 (lab) Lab 09: Converting Roman Numerals Project 2 out
Wed 04/17 Files FOPP 10
Fri 04/19 Dictionary/File Exercises  
Mon 04/22 (Week 14) Testing FOPP 18
Mon 04/22 (lab) (Reserved for Project 2)  
Wed 04/24 Exceptions FOPP 19
Fri 04/26 (No class – workshop)  
Mon 04/29 (Week 15) Classes FOPP 20.1-20.9
Mon 04/29 (lab) (Reserved for Project 2)  
Wed 05/01 More Classes, Inheritance FOPP 20.10-20.14, FOPP 22
Fri 05/03 Building Programs and Project 2 Questions FOPP 21
Mon 05/06 (Week 16) Advanced Functions FOPP 15, 20.15, Project 2 due @8:00 AM
Mon 05/06 (lab) (No lab)  
Wed 05/08 Exam 4 Review  
Fri 05/10 8:00 AM–11:00 AM Exam 4 (Final)  

Monmouth College Services