15-112 Fundamentals of Programming

Homework 4.1


For this homework, there is no starter file. You have to create your own .py file and submit it to Autolab. You can take a previous starter file and modify it appropriately.

  • Please add your name, Andrew id, and section at the top of the file.
  • APPLY TOP-DOWN DESIGN, USE LOTS OF HELPER FUNCTIONS.
  • This homework will be manually graded.
  • You will be graded on style. You can lose up to 10 poins for style (out of 100 points). Please see here for the style rubric.
  • You may not use recursion, or any other constructs that we have not yet covered in class.
  • You will have 2 submissions on Autolab for this homework.
  • Questions

    1. First, carefully study the examples in the notes here. Make sure you understand how they work before starting the questions below.

    2. See this file for the remaining questions. Note that there are 3 parts to it.


    Valid CSS! Valid XHTML 1.0 Strict