15-112 Fundamentals of Programming

Homework 3.2


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.
  • Write test functions for each function you write.
  • APPLY TOP-DOWN DESIGN, USE LOTS OF HELPER FUNCTIONS.
  • IMPORTANT: All the code above the #ignore_rest line is autograded, and all the code below it is ignored. Make sure you put all test functions and manually graded functions below #ignore_rest.
  • 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 4 submissions on Autolab for this homework.
  • Questions

    1. For fun: watch Setting time aright.

    2. Do questions 1, 2, 3, 4 and 5 from here. (In question 1, 4, and 5 replace n with N.)


    Valid CSS! Valid XHTML 1.0 Strict