CSSE 120 — Introduction to Software Development, Robotics

Homework 14

Reminder: for each class session and associated homework:

  • 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 Pydev 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.
    It is a GOOD idea to COMMIT OFTEN, not just when you finish the homework. Doing so provides easy backups of your work.

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 9 p.m., Sunday — Thursday.

Today's project: Session14_NestedLoopsAndMutators

Main learning objectives for this homework:

  • Learning about nested loops
  • Learning about mutators and box-and-pointer diagrams
  • Learning about the wait-for-event loop pattern
  • Learning about robot line following

Do the following exercises. Use today's project: Session14_NestedLoopsAndMutators

  1. Do the TODO's in the m2_nested_loops.py module of today's project.
  2. Complete the TODO's in the m9_line_follower.py module of the Session13_LoopPatternsForInput project from the previous session.
    • The Structure Chart that you must follow for this problem is shown below.