15-122 Principles of Imperative Computation

The written and programming assignments are the heart of this course and account for 45% of your grade. Much of what you learn in this course will be through completing these assignments. They must be done individually.

Assignment Schedule

    Out Points Assignment Due

Asst 0 Tue, May 17 0 Getting Started     Wed, May 18 (recommended)
Asst 1 Thu, May 19 50 Assignment 1 Handout   Written   Mon, May 23, at start of lecture
Assignment 1 Starter Code   Programming   Mon, May 23, 11:59pm
Asst 2 Thu Jan 27 50 Assignment 2 Handout   Written   Thu, May 26, at start of lecture
Assignment 2 Starter Code   Programming   Thu, May 26, 11:59pm
Asst 3 Fri May 27 50 Assignment 3 Handout   Written   Wed Jun 1 at start of lecture
Assignment 3 Starter Code   Programming   Wed Jun 1 11:59pm
Asst 4 Wed Jun 1 50 Assignment 4 Handout   Written   Mon Jun 6 at start of lecture
Assignment 4 Starter Code   Programming   Mon Jun 6 11:59pm
Asst 5 Mon Jun 6 50 Assignment 5 Handout   Written   Thu Jun 9 at start of lecture
Assignment 5 Starter Code   Programming   Thu Jun 9 11:59pm
Asst 6 Fri Jun 10 50 Assignment 6 Handout   Written   Mon Jun 13 at start of lecture
Assignment 6 Starter Code   Programming   Mon Jun 13 11:59pm
Asst 7 Tue Jun 14 50 Assignment 7 Handout   Written   Fri Jun 17 at start of lecture
Assignment 7 Starter Code   Programming   Fri Jun 17 11:59pm
Asst 8 Thu Jun 16 100 Assignment 8 Handout   Written   none
Assignment 8 Starter Code   Programming   Thu Jun 23 at 11:59pm
Assignment 8 Tests   Some test cases  

Collaboration and Academic Integrity

The university policies and procedures on academic integrity will be applied rigorously.

The value of your degree depends on the academic integrity of yourself and your peers in each of your classes. It is expected that, unless otherwise instructed, the work you submit as your own will be your own work and not someone else's work or a collaboration between yourself and other(s).

Please read the University Policy on Cheating and Plagiarism carefully to understand the penalties associated with academic dishonesty at CMU. In this class, cheating/copying/plagiarism means copying all or part of a program or homework solution from another student or unauthorized source such as the Internet, knowingly giving such information to another student, or giving or receiving unauthorized information during an examination. In general, each solution you submit (quiz, written assignment, programming assignment, midterm or final exam) must be your own work. In the event that you use information written by another person in your solution, you must cite the source of this information (and receive prior permission if unsure whether this is permitted).

Your course instructor reserves the right to determine an appropriate penalty based on the violation of academic dishonesty that occurs. Violations of the university policy can result in severe penalties including failing this course and possible expulsion from Carnegie Mellon University. If you have any questions about this policy and any work you are doing in the course, please feel free to contact your instructor for help.

We will be using the Moss system to detect software plagiarism.

It is not considered cheating to clarify vague points in the assignments, lectures, lecture notes, or to give help or receive help in using the computer systems, compilers, debuggers, profilers, or other facilities.

Due Dates

All handins of written assignments are on paper at the beginning of lecture (3:00 pm) on the due date. Assignments handed in after this time will receive no credit.

All handins of programming assignments are electronic via hand-in scripts on the university's linux systems. You may submit programs multiple times until they are due without penalty, but only your final hand-in will be graded.

All programming assignments are due at 11:59pm on the specified due date. Late submissions without special permission will receive no credit.

Exceptions to the policies above will be granted only in exceptional circumstances and must be discussed with and approved by the course instructor in advance.


Grading criteria are stated separately with each assignment.

Grading for written assignments is based on the correctness of the answer and the presentation of your reasoning. Strive for clarity and conciseness, but show how you arrived at the answer. If you cannot solve a problem, explaining your approach and why you failed is encouraged. Such answers will be given partial credit.

The most important criterion for programming assignments is always correctness. Buggy code is useless, and is likely to get a low score. It is important that your code be readable and well-organized. This includes proper use of contracts, invariants, and clear comments.

Grades are based primarily on the total score for the class out of 1000 points. There are no predetermined cut-offs, but 900 and above is guaranteed to be an A, 800 and above a B, etc. The teaching staff will decide on grade boundaries at the end of the year. We will use intangibles, such as participation in class and recitation for those close to grade boundaries.

[ Home | Schedule | Assignments | Resources ]
[ Blackboard | academic.cs.15-122 ]

William Lovas