PIC 20A Lecture 1, Fall 2018

Ernest Ryu, MWF 9:00–9:50am, MS 5117
Discussion Sections
Andrew Krieger, TR 9:00–9:50am, MS 6221

Basic resources


Lecture slides and code


Homework 1
Homework 2, PlayCard.java
Homework 3
Homework 4, CFPlayer.java, CFGame.java, Test.java
Homework 5, MetaCollection.java, Test.java
Homework 6, Business.java


Sample final 1
Sample final 2

Friday, Nov. 2, 9:00–9:50am
MS 5117

Thursday, Dec. 13, 3:00–6:00pm
Location TBD

Teaching staff

Ernest Ryu, My email address.
Andrew Krieger, Kieger email address.

Office hours

Ryu, MWF 10:00–11:00am, MS 7324
Krieger, W 1:00–2:00pm, MS 2000


It is the student's responsibility to make sure, at the beginning of the quarter, that he or she can take the midterm and final exams on the specified date and time. Make-ups for the midterm of final exams will be accommodated only under extreme emergencies.

Homework policy and grading scheme

We will have 6 homework assignments. They are not of equal difficulty and are not weighed equally. You must complete all homework assignements. However, you have 5 late days and you can use up to 3 late days per homework assignment. The total score, which the final letter grade is based on, is computed with weight: homework 20%, midterm 30%, and final 50%.

Collaboration policy

Collaboration is strongly encouraged, as it has huge educational and social value. However, we take cheating in exams and homework assignments very seriously. We will report violations. Use common sense to judge what constitutes cheating. Clearly, any form of collaboration in exams is cheating.
In homework assignments we have the baseline rule: it is cheating to look at a classmate's code, except when you are expressly helping to debug. For example, copy-pasting part of a friend's code and tweaking is cheating. However, feel free to use pseudocode in discussions.


A grading error must be brought to attention of the teaching staff within 14 calendar days of the due date of the assignment or the date of the exam, and before the date of the final exam to be considered. Correction requests not initiated within this period will not be considered.

PIC lab

The PIC lab (located at MS 2000) is a good place to do your homework.