Tags:
view all tags
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.
Create one zip folder for the team
place your code (making sure it has a comment that includes the lab assignment and the name of all team members)
place each member's pdf in the folder
Have one team member submit it in canvas.
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!
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r3
<
r2
<
r1
|
B
acklinks
|
R
aw View
|
Raw edit
|
More topic actions...
Topic revision: r2 - 2022-08-23
-
cathybareiss
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 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