Lesson 13 - Multiple If-Then statements
Watch the video below about how to use multiple If-Then statements.
Assignment 13:
Add a motor with some sort of arm if you can.
Program the robot to move forward, and while it does so, to:
- make a noise if it goes over a red block
- move the arm while it is over white OR if you don't have an arm, make it say "white' over and over again
- spin for 3 seconds if it sees green (make sure it stops pointing forwards)
- stop for 3 seconds if it sees blue
Make sure that the program works. Make sure it is annotated. Save it as MultipleYourname.
To turn it in
- Go to Google Drive :
- Open the Class Assignments LEGO folder in 'Shared with me'
- Open your class folder and assignment folder
- Click on the "New" button on the top left
- Upload the program from your computer as MultipleYourname.
|