CMU 15-112 Spring 2017: Fundamentals of Programming and Computer Science
Homework 8 (Due Wednesday 8-Mar, at 10pm) (No Late Days or Grace Days)
- This hw is SOLO. For this hw, do not even discuss any portion of it with anyone except TA's and faculty.
- Starter files: none this week.
- This week you may use up to 5 submissions. Only your last submission counts.
- There is no autograder this week.
- Do not use recursion, sets, or maps/dictionaries this week.
- Do not hardcode the test cases in your solutions.
- As usual, there are no late days this week. Also, for this hw, no grace days may be used, either. The hw is to prepare for the midterm, which is on Thursday, so it must be completed by Wednesday night.
- For animations, be sure to adapt the code from events-example0.py, or one of the other demos we covered this week. If you use code from the course website, be sure to cite it, and be sure you thoroughly understand every line of it!
- Note: the purpose of this hw is to give you some structure in practicing and preparing for midterm1. In addition to what is assigned here, we will provide some optional review and study sessions as well, and you are encouraged to study additional materials on your own. For example, you should study all the quizzes we have taken, all the course notes, all the case studies, all the labs and homeworks, etc.
- Small-Group Session [20 pts] [manually graded]
Attend one TA-led small-group session for midterm review. You will hear from your recitation TA's to schedule this. There is nothing to submit here -- your TA's will record your attendance at the session. - Attend Tue in-lecture practice midterm [20 pts] [manually graded]
Attend the TA-led practice midterm session during what would normally be assigned lecture time on Tuesday. There is nothing to submit here -- your TA's will record your attendance at the session. - Relevant portions of f15-quiz6x [20 pts] [manually graded]
Do the relevant portions of f15-quiz6x. For the coding exercises, include them in your hw8.py file (not handwritten). For the handwritten exercises, include your solutions in a triple-quoted string at the top of your hw8.py file.- Do these: All but the bonus.
- Skip these: The bonus.
- Relevant portions of s16-midterm1 [20 pts] [manually graded]
Do the relevant portions of s16-midterm1. For the coding exercises, include them in your hw8.py file (not handwritten). For the handwritten exercises, include your solutions in a triple-quoted string at the top of your hw8.py file.- Do these: 1 (CT), 2 (RC#1), 4 (SA) / just cde, 5 (is/nthPowerish), 7 (circleAroundCircle)
- Skip these: 2-RC#2, 3 (Big-Oh), 4ab, 6 (mostCommonCities), 8 (bonus)
- Write Animation Demos in Wednesday recitation [20 pts] [manually graded]
In Wednesday recitation, you will have 50 minutes to write a subset of the animation demos (mode demo, grid demo, undo/redo demo, images demo, sidescroller demo) starting from events-example0.py. You may use pyzo for this (it is not handwritten). Of course, you should study these demos and practice writing them from scratch before Wednesday. There is nothing to submit here -- your grade will be based on your performance in recitation on Wednesday.
Note: there is no bonus this week. Use your time to prepare for midterm1, and then use any free time to think about your term projects.