For all exercises, to receive credit you need to obtain
a green check in CS Academy. There is no partial credit
on individual exercises.
HW8 (and future homeworks) may be graded for style! See the style guide linked from the schedule for more details.
We may choose to solve some homework problems in lecture. If we do, don't just copy the answer, but you may take notes if you wish.
As with every 112 assignment, the problem-solving and debugging process is more important than the result so don't rely on AI unless you're prepared to be disappointed with your writing session, quiz, and exam grades.
Required problems
6.2.6 Code Tracing Exercises
Code Tracing #1 (1)
Code Tracing #2 (1)
6.2.8 Guided Exercises
repeats (1)
6.2.9 Section Exercises
Make sure you understand 6.2.7 before starting!
hasNoDuplicates (1)
isPermutation (1)
reverseStrings (1)
6.3.6 Code Tracing Exercises
Code Tracing #1 (1)
Code Tracing #2 (1)
6.3.7 Guided Exercises
mostCommonName (1)
6.3.8 Section Exercises
friendsOfFriends (2)
mostCommonLetterPairs (3)
6.4.9 Section Exercises
containsPythagoreanTriple (1)
Bonus/Optional
Note:
This problem is bonus and optional (you can skip it).
It is worth up to 2 bonus points total (i.e. 2% of hw8). This is very little, so it is not worth doing it just for the points. Instead, do it if you would like to challenge yourself and gain more practice.
Also note that we will generally not provide much help on bonus questions until after the homework deadline.
Bonus exercises:
6.6 Unit 6 Honors Exercises
semesterGrades (3 in CS Academy, worth 2 bonus points)