Harvey Mudd College

CS 42: Principles and Practice of Computer Science
Syllabus, Fall 2011

Is This Course for You?

This is an accelerated introductory computer science course, designed for students with significant computer science and/or programming experience. We assume that you have taken (and done very well in) AP Computer Science or a similar introductory computer science or introductory programming course. We assume you are familiar with Object Oriented programming, likely in Java. You should be comfortable programming in at least one real programming language. This course moves fast and covers a lot of ground, but it is also a lot of fun, and we get to study some very awesome CS concepts. This course covers most of the material in both CS 5 and CS 60. After completing this course you will be eligible to take any course that has CS 60 as a prerequisite.

If you are unsure about your placement in this class, please speak with Prof. Stone ASAP. It is possible to switch to CS 5 Black (which meets at the same time on the same days), but the earlier you switch to the right section for you, the better.


Overall Course Aims and Objectives


Course Mission Statement

CS 42, Principles and Practice of Computer Science, provides the student with a broad overview of the science of computer science, at the same time providing sufficient depth in a number of key conceptual areas that are intended to serve both majors and non-majors well. These concepts include: All of these concepts are important in both computer science and engineering. Programming in a variety of languages is used as a vehicle to demonstrate concepts. Language choice is not specifically made to match the often-changing demands of industry. Instead, we hope that each student gains experience in as wide a range of programming practices as possible. Underneath each assignment's language are conceptual points that are language-independent. The overarching goal is that, at the end of CS42, you'll feel comfortable programming in any language -- even one you've never seen before! That is, you will be a savvy computational thinker, not dependent on any particular technology.

Logistics


Switching Courses

If you decide that CS 42 is not right for you, you may switch into CS 5 Black. Please do your best to make this decision before the official add date, otherwise things get very complicated. Talk to Prof. Stone as soon as you feel that CS 42 might not be the right place for you.

Attendance

On-time attendance at lectures is required in order to pass this course.

If you are ill and cannot attend or an emergency arises, please contact Dean Jacobsen before the missed class if at all possible (or very shortly thereafter if not). If you need to miss class for any other reason, you must get permission in advance from the Associate Dean for Academic Affairs (Dean Jacobsen).

Your first two unexcused absences will have no impact on your grade.  For each of your next three unexcused absences, you will lose 10% of your participation grade.  Your sixth unexcused absence will result in a grade of "No Credit". There are no exceptions to this rule.


Optional Text

There is no required textbook for this class. We try to provide everything you need to know in lectures or via web resources (linked from the References page).

However, some students might find the following textbooks useful:


Assignments and Exams

There will be an assignment every week (with exceptions for breaks). Unless stated otherwise, homework is due each Monday at 11:59 PM. Since we use an automated procedure to determine submission time, if you submit even slightly after midnight, it will be recorded as being submitted the next day.

You have three late days or "CS 42 Euros" that you may use at your discretion -- you don't need to tell us in advance. A late day allows you to turn in an assignment 24 hours late with no penalty. You may not use two late days on the same assignment. Late homeworks will not be accepted once these late days have been used. In cases of illness or emergency, you should contact Dean Jacobsen to arrange an extension and have him contact me.

In addition to weekly assignments, there will be two midterm exams and a final exam. See the exam schedule page for up-to-date details.


Attendance

On-time attendance at lectures is required in order to pass this course.
If you are ill and cannot attend or an emergency arises, please contact Dean Jacobsen before the missed class if at all possible (or very shortly thereafter if not). If you need to miss class for any other reason, you must get permission in advance from the Associate Dean for Academic Affairs (Dean Jacobsen). Your first two unexcused absences will have no impact on your grade. For each of your next three unexcused absences, you will lose 10% of your participation grade. Your sixth unexcused absence will result in a grade of "No Credit". There are no exceptions to this rule.

Optional Text

There is no required textbook for this class. We try to provide everything you need to know in lectures or via web resources (linked from the References page).

However, some students might find the following textbooks useful:


Grading

This course is considered a first-year course, and is graded on a Pass/No Pass scale. There are three graded components of this course, weighted as follows:

Using the point values above, you will see that the breakdown is roughly 60% of your grade for assignments, 30% for exams, and 10% for participation.

Final grades are computed with this Racket code as our rough guideline (exact boundaries subject to change). Note that letter grades will be provided for your information only, and they will not be recorded.
(define (score p)
(cond
((>= p 0.97) "High Pass")
((>= p 0.70) "Pass")
(else "We hope not to have to use this option"))

IMPORTANT GRADING NOTES:


Collaboration Policy/Pair Programming

For most of the programming assignments you will be permitted to “pair program” on some problems if you wish. The rules and guidelines for pair programming are as follows:

Now that you know the rules, here are some pair programming guidelines to help you get the most out of your experience:

Whether you are programming individually or as a pair, there are a few important rules regarding cooperation. You are always welcome and encouraged to discuss approaches to solving homework problems with any classmate, the grutors, or Prof. Stone. You may not share any written/typed materials of any kind. In particular, you may not send or receive code that is related to this course by e-mail, on the web, from another person's file or printout, or in any other form. This rule applies to two people working as a pair with the following exception: The code may be sent by e-mail from one member of the pair to the other after the code is submitted for grading. Moreover, the pair may print out a copy of their code to work on together.

You may wonder if it is permitted to help a classmate (other than your partner if you are pair programming) debug a program and, in the process, look at their code. This is permitted, assuming that it is done with the intent of helping your classmate learn, and not with intent of gleaning code that might be used in your own program, or with the intent of simply giving away answers. Use your good judgement here. If you're not sure about what's appropriate, please talk to Prof. Stone.

All conduct in this course should be conducted in accordance with the Harvey Mudd Honor Code. If you are an off-campus student and unfamiliar with the honor code, please talk to Prof. Stone.


Students with Disabilities

The college is committed to complying with the Rehabilitation Act of 1973 and the Americans with Disabilities Act of 1990 by providing reasonable accommodations for students who are disabled. Students requiring specific accommodations for a physical, psychological, medical or learning disability should contact the Dean of Students at 909 621-8125. The Dean will review your concerns and determine, with you, what accommodations are necessary and appropriate. All information and documentation of disability is confidential.