Don't fall

02 Feb 2025 - 01:51 | Version 1 |

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. It must use parallel programming. One branch for staying on the table and a second for dealing with red.
    2. Use the touch sensor to know if you are about to fall off the table.
    3. 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. A brief description of what you did
    3. How you improved over any mistakes made last time
    4. Indicate which hints (if any) you used
    5. How well you achieve each objective.
  3. Submission:
    1. submit code and document in one zip folder.

Hints

  1. In class we have demonstrated how to do parallel programming. Refer to your lecture notes.

Challenges

  1. Add a third feature (via parallel programming) with a different sensor. It is important that each action be totally independent!
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
This website is using cookies. More info. That's Fine