Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 555 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 555 Bytes

LegoLab1

First lab for NBC programming

Turtle Polygons

Your goal for this assignment is to program the robot drive the pattern of a multi-sided polygon.

Write an app in NBC that does the following:

  1. Prompt the user to input a number between 3 and 8 (N)
  2. Calculate the inside angle for an N-sided polygon.
  3. Run a counted loop for the number of sides (N)
    a. Forward(distance)
    b. Turn(angle)

Compile, load and run your app.
When you are finished, fork this repository, upload your NBC code and create a pull request.