For all exercises, to receive credit you need to obtain
a green check in CS Academy. There is no partial credit
on individual exercises.
HW6 (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
4.4.12 Code Tracing Exercises
(Note: Some of these can be annoyingly picky about spacing. If you solve the problem but just can't quite get the spacing to match, post on Ed and we can help you out.)
Code Tracing #1 (1)
Code Tracing #2 (1)
Code Tracing #3 (1)
Code Tracing #4 (1)
4.4.13 Guided Exercises
removeRowAndCol (mutating and nonmutating) (1)
(We'll probably cover this in lecture)
isLatinSquare (2)
4.4.14 Word Search Case Study
betterWordSearch1 (2)
(We'll probably cover this in lecture)
betterWordSearch2 (2)
4.4.15 Section Exercises
makeEdits (1)
isKingsTour (3)
4.5 Unit 4 Guided Exercises
isLegalSudoku (2)
Bonus/Optional
Note:
These problems are bonus and optional (you can skip them).
They are worth up to 4 bonus points total (i.e. 4% of hw6). This is very little, so it is not worth doing them just for the points. Instead, do them 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:
4.4.16 Honors Exercises
isAlmostMagicSquare (3 in CS Academy, worth 2 bonus points)
4.4.18 Additional Practice Exercises
isKnightsTour (2 in CS Academy, worth 1 bonus point)
4.6 Unit 4 Exercises
nQueensChecker (2 in CS Academy, worth 1 bonus point)