CS21: Introduction to Computer Science
Fall 2014

Schedule | Grading Policies | Academic Integrity | Student Support | Tips for Success

Announcements

Dec 8: The study guide for the final is out
Dec 8: We have posted a final lab, which will not be graded but is good for practice for the final. Take a look and try it if you have time.
Dec 8: Walkthrough for Quiz 6 on Moodle
Dec 8: Lecture Notes from last week online.
Dec 4: Walkthrough for Quiz 5 and Lab 8 on Moodle
Dec 1: Reminder: There will be a quiz on Thursday. We have the study guide available.
Nov 24: Lab 10 posted.
Nov 17: A study guide has been released for Quiz 5.
Nov 17: Lab 9 posted.
Nov 13: Quizzes 5 and 6 have been rescheduled to Thursday, Nov 20 and Thursday, December 4 respectively. They are still scheduled for the first 30 minutes of class. Please take note.
Nov 11: Grading Guidelines for Quiz 4
Nov 9: Lab 8 posted.
Oct 31: I have made up some sample problems for practice. I will keep on adding to this file if there is a demand.
Oct 28: Lab 7 posted. Please send me your design before you start coding!
Oct 10: Lab 6 posted. Run update21 to get the starter program.
Oct 7: If you are using a PC and want to install Python at home, we have updated the instruction page for you.
Oct 7: The class Moodle page is up and running now. Apparently there was a "switch" somewhere that I had to flip to make it "visible". And of course that switch is not visible on the main page, so I wasn't even aware that it existed! That's what's called poor interaction design! If this was a project in my Human computer interaction course back home, I'd take off points for that!
Oct 7: We have made a change to the graphics library. If you are working on your home laptop, please replace your old graphics.py with this one. (Right click to download to your laptop.)
Oct 4: Walkthroughs for Programs 5-10 from the graphics week available on Moodle.
Oct 3: Some people have been asking about how to how to do their CS21 stuff on their Mac laptops, so here you go. Please note that if you do your CS21 work at home, you still need to copy them onto the school machines and do a handin21!
Oct 2: Walkthrough for Lab 3, Miniquiz question posted on Moodle.
Oct 2: Lab 5 posted (yes, we're early this week.)
Oct 2: If you are keen, program10.py has been debugged. Delete it and re-run update21 to get the newest version. Oct 1: Final Exam Date has been released! Dec 12 7pm.
Sept 29: Lab 4 posted.
Sept 21: Lab 3 posted.
Sept 18: Some of you asked for practice exercises, so I have included some at the end of this week's lecture notes.
Sept 18: Clarification: the "don't wrap the line" grading guideline for the labs applies to comments only. We won't take off points if your programming statements get too long and line wrap. Having said that, I'd still not advise making over-complex programming statements.
Sept 17: Grading Guidelines for Quiz 1 and Lab 1
Sept 14: Study Guide for Quiz 1 posted
Sept 14: Lab 2 posted.
Sept 8: Lab 1 posted. Due Saturday midnight
Sept 1: Welcome to the first week of classes!

Course Information

Section 3: TR 09:55 – 11:10 SCI 256
Professor: Grace Ngai
Piazza: Question and answer forum for the class
Office: SCI 251
Phone: I hate the phone – send me email
Office hours: Tuesday 14:30-15:30, or drop in, or by appointment

Introduction

Welcome to cs21. This course will introduce fundamental ideas in computer science while also teaching you how to write computer programs. You will study algorithms for solving problems and learn how to implement solutions in the Python programming language. We also introduce object-oriented programming and data structures. A deeper coverage of these topics will be presented in cs35.

This course is appropriate for all students who want to learn how to write computer programs and how to think like computer scientists. it is the usual first course for computer science majors and minors. Students with advanced placement credit or extensive programming experience should place out of this course and instead begin with either cs31 or cs35.

Textbook

There is no required textbook for this course. There are, however, required readings! See the Schedule for each week's reading assignment. We will primarily be using the online book How to think like a computer scientist: Learning with Python by Elkner, Downey and Meyers.

Here are a few other useful online python resources:

Goals for the course



Grading Policies

Grades will be weighted as follows:
5%Class Participation
40%Lab assignments
30%Quizzes
25%Final Exam

Lab Policy

This course features weekly lab assignments which are the largest component of your course grade. Lab attendance is required by all students, unless you have already completed and submitted the lab assignment for the week. You must attend the lab session for which you are enrolled:

Weekly Lab Sessions
Lab A: Tues. 1:05—2:35pm Knerr Science Center 256
Lab B: Tues. 2:45—4:15pm Knerr Science Center 256
Lab C: Thur. 1:05—2:35pm Ngai Science Center 240
Lab D: Thur. 2:45—4:15pm Meeden Science Center 240

Lab assignments will typically be posted on the web by Sunday afternoon and will be due before midnight on Saturdays. You are strongly encouraged to start early and to attend the study sessions for extra practice. You will submit you assignments electronically using the handin21 program. You may submit your assignment multiple times, and a history of previous submission will be saved. You are encouraged to submit your work regularly.

Late assignments will only be accepted if you contact the professor at least a day before the deadline with a legitimate reason for needing extra time, such as an illness or needing to leave campus. Even if you do not fully complete an assignment, you should submit what you have done to receive partial credit.

Quiz Policy

Quizzes will be given at the beginning of class on the days posted in the Announcements section of the Schedule. Please look at these dates carefully and contact me in advance if you cannot be in class for a quiz.



Academic Integrity

Academic honesty is required in all of your work. Under no circumstances may you hand in work done with (or by) someone else under your own name. Your code should never be shared with anyone; you may not examine or use code belonging to someone else, nor may you let anyone else look at or make a copy of your code. This includes, but is not limited to, obtaining solutions from students who previously took the course or code that can be found online. You may not share solutions after the due date of the assignment. However, discussing ideas and approaches to problems with others on a general level is fine, in fact, we encourage you to discuss general strategies with each other.

All code you submit must be your own with the following permissible exceptions: code distributed in class, code found in the assigned readings for the course, and code worked on with an assigned partner. In these cases, you should always include detailed comments that indicates on which parts of the assignment you received help, and what your sources were.

Failure to abide by these rules constitutes academic dishonesty and will lead to a hearing of the College Judiciary Committee. According to the Faculty Handbook: "Because plagiarism is considered to be so serious a transgression, it is the opinion of the faculty that for the first offense, failure in the course and, as appropriate, suspension for a semester or deprivation of the degree in that year is suitable; for a second offense, the penalty should normally be expulsion." Be aware that we will be routinely running plagiarism detection software on the lab solutions of students from all sections of cs21.

Please contact me if you have any questions about what is permissible in this course.



Student Support

Lauri Courtenay is the CS Department's Academic Support Coordinator. She will be working closely with our student mentors, also known as Ninjas, to help you learn how to program and think like a computer scientist. The Ninjas for this semester are: Isabel (Izzi) Baskin, Alexander Simms, Afua (Dee) Ahima, Allison Ryder, Daniel Redelmeier, and Justin Cosentino.

Study sessions

You are invited, and encouraged, to participate in Ninja evening study sessions to prepare for quizzes, to discuss programming concepts, and to get friendly assistance in working on lab assignments. Our CS mentoring team is dedicated to helping students, who have no prior knowledge of computer science, learn to program in Python while keeping their senses of humor intact. As an added bonus, free snacks will be provided at the sessions. The sessions are held:

Weekly Evening Ninja Sessions
Mondays 7—9pm Sci Center 256
Thursdays 7—10pm Sci Center 256

Accessing the CS labs after hours

You can use your ID to gain access to the computer labs at nights and on the weekends. Just wave your ID over the microprox reader next to the lab doors. When the green light goes on, just push on the door handle to get in (the door knob will not turn). If the green light doesn't go on, then we need to enter your microprox number into the system. Email local-staff@cs.swarthmore.edu if you have problems with this. If the building is locked, you can use your ID to enter the door between Martin and Cornell library. For this class, your ID will give you access to the labs in rooms 238, 240, and 256.

Academic Accommodations

If you believe that you need accommodations for a disability, please contact Leslie Hempling in the Office of Student Disability Services (Parrish 113) or email lhempli1@swarthmore.edu to arrange an appointment to discuss your needs. As appropriate, she will issue students with documented disabilities a formal Accommodations Letter. Since accommodations require early planning and are not retroactive, please contact her as soon as possible. For details about the accommodations process visit Student Disability Services.



Tips for Success in cs21


Schedule


Programming Style

Programming is not a dry mechanical process, but a form of art. Well written code has an aesthetic appeal while poor form can make other programmers and instructors cringe. Programming assignments will be graded based on style and correctness. Good programming practices usually include many of the following principles: