Homework 2
Overview
Deadlines:
HW2 Reading and Checkpoints Recommended Deadline |
Thu 27-Jun at 8pm |
HW2 Main Deadline |
Sun 30-Jun at 8pm |
HW2 Late Deadline (see syllabus for details) |
Mon 1-Jul at 11am |
Solo vs Collaborative:
- Parts 0 and 1 are Solo
- Part 2 is Collaborative
- See the syllabus for details.
Grading
10% of your HW2 grade comes from completing the code review in part 3.
90% of your HW2 grade comes from completion of the exercises described
in parts 1 and 2.
Part 0: Reading and Checkpoints (SOLO)
This part only concerns reading and checkpoints, and not
code tracing or exercises (those are assigned below).
Read all the notes and carefully complete all the checkpoints in Unit 2.
While there is no official deadline, you need to complete this step to
unlock the HW. We recommend you complete this by Thu 27-Jun at 8pm.
Part 1: Required CS Academy Exercises (SOLO)
This part is entirely solo. It is not collaborative. See the syllabus
for details.
For guided exercises, watching the guided video is required -- it will
show you how to solve the exercise elegantly, will save you lots of
time, and will best prepare you for later exercises. Thus, first read
the writeup and then carefully watch the guided video. Then and only
then should you solve the guided exercise.
Complete (with green checks) every exercise in the following section:
- 2.1.8 Homework 2 Part 1 (Loops)
Part 2: CS Academy Exercises (COLLABORATIVE)
This part is collaborative, as explained in the syllabus. Collaboration
is not required but is encouraged.
Be sure to properly cite your
collaborators!
In this section you will be able to choose between exercises of varying
difficulty levels. Choose the ones that are the best fit for you! In
each section, there is a required total number of stars you must
achieve. Note that 4 point exercises are meant to be quite challenging,
so only attempt them once you are confident with the material.
Complete (with green checks) the required number of stars in the
following sections:
- 2.1.9 Homework 2 Part 2 (Loops)
Note: While earning more than the required number of stars is good
practice, it will not earn you bonus points except as described below.
Bonus:
If you complete the Integer Data Structures problem, you will recieve
10/8 stars in the Homework 2 Part 2 Section (2 bonus stars!). This
problem is for students who want an extra challenge, and should only be
completed if you are very confident with the other material. 2 stars are
not a lot compared to the time it will take to do this problem, so do it
if you're interested, not for the extra points!
Part 3: Code Review
You will be randomly chosen to do a code review in recitation either Thu
27-Jun or Mon 1-Jul. During the code review, you will discuss your HW1
or HW2 code with a TA. This is an opportunity for you to learn how to
improve your code, and your grade is determined by active participation.