Skip to content

xTwigsterx/LegoLab1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

First lab for NBC programming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published