Don't fall
Objectives
- Start to learn parallel programming
- Reinforce repetition
- Reinforce selection
- Experience proper pair programming
Assignment
- Create a clean program that will not fall of the table and stop when it encounters red on the table.
- Additional requirements
- All programming must be done following the simplified version of pair programming we covered in class.
- It must use parallel programming. One branch for staying on the table and a second for dealing with red.
- Use the touch sensor to know if you are about to fall off the table.
- If you are about to fall off the table, turn a random amount and start moving forward again.
Submission instructions
- Due date is found on Canvas
- Each person should create a pdf document that contains the following information
- Your name
- Your partner's name
- A brief description of what you did
- A brief description of what your partner did
- How your team improved over any mistakes made last time
- Indicate which hints (if any) your team used
- How well you achieve each objective. Include a discussion about how pair programming went.
- Submission:
- Team member A submits the team's code and his/her pdf document in one zip folder.
- Team member B submits his/her pdf document (does not need to be zip'ed)
Hints
- In class we have demonstrated how to do parallel programming. Refer to your lecture notes.
- 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
- Add a third feature (via parallel programming) with a different sensor. It is important that each action be totally independent!
This topic: CenterForComputing
> WebHome >
SyllabiFall2022 >
CSC102SylF2022 > CSC102F2022Lab5
Topic revision: r3 - 2022-08-30 - cathybareiss