HW9 (due Sat. 25-Mar, 8pm)
From the syllabus:
Each CS Academy assignment has a required number of "stars" in several sections, listed like this:
"Section Exercises: ⭐
0 / 11."
Unless otherwise specified, each star is worth the same percentage of your homework score, up to 100%. If you complete fewer than the required number of stars in a section, you will receive a score equal to the percentage of required stars you completed. For example,
if there are 16 required stars and you complete 8, you will receive 50%. If you
complete all of the required stars you will receive 100% on the assignment.
A green checkmark next to a problem (in CS Academy) means it has autograded correctly and you are done. No green checkmark means it's not done yet. If you believe you should have received a green checkmark, be sure to review your work, and be sure that you hit the "check" button after the "run" button to submit it. The "check" button runs your code against additional hidden test cases which you must pass in order to receive credit. It's your responsibility to properly submit and be aware of whether you have received green-checkmark credit for your work! There is generally no partial credit for autograded problems.
Important Notes:
- Aside from problems we fully solve in lecture or recitation, homework is fully solo. You must not collaborate with anyone (besides current course TA's and faculty) in any way. See the syllabus for more details.
- Do not hardcode to the test cases in your solutions.
- Do not use recursion on these homework problems. Also note that you must adhere to any additional requirements in the problem statement, even if you find a solution that passes the autograder without them. In addition to style grading, we may manually check your work, and you will not receive credit if your solution passes the autograder but does not adhere to problem requirements.
- There are relatively few problems this week (just 5) but two of them are somewhat sophisticated animations, so do not put off everything until the last minute, and read the writeups very carefully. As usual, these autograded problems will not be eligible for partial credit.
- There are no bonus stars available in this unit. However, we will release the pre-reading for week 10 (recursion) earlier than normal, and we encourage you to begin working through the week 10 pre-reading (which is somewhat longer than usual) as soon as you are done with this assignment. You may also wish to spend some time thinking about what you might like to build for your term project.
In CS Academy, complete the required number of stars from each section below.
For each section, we list the number of required and available stars. For example, this means 2 out of 4 stars are required from a section: "2/4 ⭐ required"
The number of stars available for each problem is in parentheses. For example, this means you get 2 stars for solving a problem: "(2)"
- Unit 7: Object Oriented Programming (OOP)
- 7.10 Guided Exercises: 4/4 ⭐ required
- Line Puzzle Classes (2)
- Line Puzzle (2)
- 7.11 Section Exercises: 5/5 ⭐ required
- Polynomial (1)
- Note that the test cases for hashing are somewhat broken for this problem and will allow empty hash methods to pass.
- In case we manually review this, you should still write a non-empty hash method that passes the test cases to ensure you keep full credit.
- WaterPouringPuzzle Classes (2)
- WaterPouringPuzzle (2)
- We will show what this animation looks like in lecture, since you might not be able to see the reference canvas until you write working classes.