CSSE 120 -- Intro. to Software Development

Homework 13

  1. Read Sections 9.3 of Zelle.
  2. (8 points) Complete the ANGEL quiz, Simulation and Design II over this section. You will find this quiz in the Homework 13 folder on ANGEL.
  3. (15 pts) Complete the individual exercise you started in class: listMax.py,  and commit your solutions to your Subversion repository using a sensible log message.  Details:

    1. Define function listAndMax() in module listMax.py that
           Prompts the user to enter numbers, one at a time
           Uses a blank line (<ENTER>) as sentinel to terminate input
           Accumulates the numbers in a list
           Uses a loop to calculate the maximum value of the numbers
           Returns two values:
                the list of numbers entered in the order they were entered
                the maximum value
      Define function main() in module listMax.py that
           Calls listAndMax()
           Prints the list of numbers entered
           Prints the maximum value of the list of numbers
  4. (20 pts) Solve Zelle chapter 8, programming problem #9.  This is on page 263 of your text.

    1. Write your solution in module fuelEfficiency.py in the Session13 project that you checked out.

    2. Test your code and make sure that it works

    3. Commit your solutions to your Subversion repository.