Don't fall

Objectives

  1. Start to learn parallel programming
  2. Reinforce repetition
  3. Reinforce selection
  4. Experience proper pair programming

Assignment

  1. Create a clean program that will not fall of the table and stop when it encounters red on the table.
  2. Additional requirements
    1. All programming must be done following the simplified version of pair programming we covered in class.
    2. It must use parallel programming. One branch for staying on the table and a second for dealing with red.
    3. Use the touch sensor to know if you are about to fall off the table.
    4. If you are about to fall off the table, turn a random amount and start moving forward again.

Submission instructions

  1. Due date is found on Canvas
  2. Each person should create a pdf document that contains the following information
    1. Your name
    2. Your partner's name
    3. A brief description of what you did
    4. A brief description of what your partner did
    5. How your team improved over any mistakes made last time
    6. Indicate which hints (if any) your team used
    7. How well you achieve each objective. Include a discussion about how pair programming went.
  3. Create one zip folder for the team
    1. place your code (making sure it has a comment that includes the lab assignment and the name of all team members)
    2. place each member's pdf in the folder
  4. Have one team member submit it in canvas.

Hints

  1. In class we have demonstrated how to do parallel programming. Refer to your lecture notes.
  2. This is not a very challenging program. If one person has been doing much of the programming up to now, it is time to switch.

Challenges

  1. Add a third feature (via parallel programming) with a different sensor. It is important that each action be totally independent!
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2022-08-03 - cathybareiss
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback