CSSE 120 -- Intro. to Software Development

Homework 13

Reminder: for each class session and associated homework:
  • You do the Reading Quiz on Angel.
  • You do all other work in Eclipse in the project that you checked out for that session or will check out per the homework instruction.
  • Unless otherwise specified, follow the template given in this document for solving each programming assignment.
  • You turn in your Eclipse work by committing that project:
    • Right-click on the project name in the Package Explorer view.
    • Select Team ~ Commit
    • In the message box that appears, put a message to yourself if you wish (eventually, these messages will be for your teammates) and press OK.

  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: module8_listMax.py,  and commit your solutions to your Subversion repository using a sensible log message.  Details:

    1. Define function getList() in module module8_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 in the order entered
      • Return the list of numbers
    2. Define function maxList() in module module8_listMax.py that
      • Returns the maximum number in the given list
      • Uses a loop -- it is not fair to use the built-in max or sort functions.
      • If the list is empty, just return (so the max will print as None).
    3. Define function main() in module module8_listMax.py that
      • Calls the above functions
      • Prints the list of numbers entered
      • Prints the maximum value of the list of numbers
  4. (60 pts) If you have not already done so, complete the speedReading.py module as described in the previous homework (hw11).