For all exercises, to receive credit you need to obtain
a green check in CS Academy. There is no partial credit
on individual exercises.
HW3 (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
2.4.10 Code Tracing Exercises (all, 2 stars)
2.4.11 Guided Exercises
encodeCaesarCipher + decodeCaesarCipher (1)
topScorer (1)
2.4.12 Section Exercises
interleave (1)
areAnagrams (1)
longestSubpalindrome (2)
2.4.13 Honors Exercises
evalPolynomial (3)
2.4.15 Additional Practice Exercises
longestCommonSubstring (2)
2.5.2 Guided Exercises
nthHappyPrime (1)
2.7 Unit 2 Exercises
stripComments (2)
Bonus/Optional
Note:
This problem is bonus and optional (you can skip it).
It is worth up to 2 bonus points (i.e. 2% of hw3). 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:
2.4.13 Honors Exercises
getEvalSteps (4 in CS Academy, worth 2 bonus points)