Don't fall

30 Aug 2022 - 14:14 | 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. 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. Submission:
    1. Team member A submits the team's code and his/her pdf document in one zip folder.
    2. Team member B submits his/her pdf document (does not need to be zip'ed)

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!
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