15-112: Fundamentals of Programming and Computer Science
Week 3 Practice Problems
- 1-Hour CA-led Large-Group Study Sessions (see hw3 for details)
- changingPropertiesAnimation
Review changingPropertiesAnimation from class notes
here
- wallWalkingAnimation
Write the function wallWalkingAnimation(canvas, width, height, step) so that stepAnimation.run(wallWalkingAnimation, width=200,height=100,timerDelay=1) produces the animation described in
this video.
- Covered in Recitation
- review s15-quiz2
- nthPerfect
Write the function nthPerfect(n) under quiz conditions. A perfect number is a number that is the sum of its proper positive divisors (so 6 is perfect, because 6 = 1+2+3, as is 28 = 1+2+4+7+14).
- nthSumProductNumber
Write the function nthSumProductNumber(n) under quiz conditions. Read about
sum-product numbers
here.
Stick to base 10.
- Additional suggested practice
- The graphics problems from here