CSSE 120 — Introduction to Software Development

Homework 9

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.
  • 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.

Questions? Email csse120-staff@rose-hulman.edu.

Best place and time to do the homework: CSSE lab (Moench Hall, room F-217), 7 p.m. to 11 p.m., Sunday — Thursday.

Today's project: 09-MoreFunctionsHomework

Main learning objectives for this homework:

  • Defining functions with parameters.
  • Calling functions with actual arguments.
  • Returning values from a function.
  • Functions with optional parameters.
  • Functions that return multiple values (by returning a tuple).
  • Mutator functions.
  • Pair Programming.

Additional learning objectives for this homework:

  • Using Lists and List methods.
  • Using Strings and String methods.
  • Using Objects, especially in Zellegraphics.
  • Definite loops.
  • The Accumulator Loop pattern.

Do the following exercises. For problems 3 and following, use today's project: 09-MoreFunctionsHomework

  1. Complete the assigned reading for the next session: Zelle, Chapter 7 — Decision Structures (27 pages).
  2. (14 points) Complete the ANGEL quiz over this reading, at the course ANGEL page, under Lessons → Homework → Homework 9 → Decisions .
  3. (15 points) This exercise gives you practice at: Returning a tuple from a function. Using Objects. Zellegraphics. Pair Programming.

    Do this using Pair programming: complete the 1-threeSquares.py module, per the TODO's in the module.

  4. (30 points) This exercise gives you practice at: Returning a tuple from a function. Lists. Using Objects. Zellegraphics.

    Do this using Pair programming: complete the 2-triangles.py module, per the TODO's in the module.