Learn to program

 
  Finch assignments ::

Learning Goal: Understand how to write a program to control a robot, using loops, conditionals and subroutines where appropriate.

 

 
 

Finch Assignment 9 - Degrees


You are going to add more functions to your module.


In your Turns assignment, you figured out the command to make your robot turn 90 degrees.
Generalize the wait time in your command to define a function called degreeTurn(degrees).


Each time it is called, it should make the robot turn the specified number of degrees. Do this
in a similar way to your Travel program.

 

To turn it in, look at the instructions below or or watch this video:

  • Go to Google Drive
  • Open the Class Program 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

 

 

Write a Reflection on what you have learned.