Geometric drawing
Objectives
- Learn to use repetition
- Learn to use variables
- Reinforce selection skills
- Reinforce reading from the brick
Assignment
- Create a clean program that will "draw" a 3, 4, or 5 sided figure (with even sides) based on the button from the brick.
- If the left button is pressed, draw a triangle (degree angle)
- If the middle button is pressed, draw a square (90 degree angle)
- If the right button is pressed, draw a five sided polygon (approximately 108 degree angle)
- Additional requirements
- You should use a count controlled loop
- You must use at least two variables.
- Inside the selection you can only have one block per option
- You may only have two instances of motor blocks
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
- 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
- The same thing about accuracy in the first lab applies to this one! There is not objective about being accurate!
- I can set a variable but using a variable is a problem
- Questions about the math should be asked in class. This is not one of the objectives of the assignment! So ask if you need some help on the arithmetic!
Challenges
- Make your program very accurate
- Have your program move forward and then draw the figure based on a color seen. Let the color pick the number of sides.
This topic: CenterForComputing
> WebHome >
SyllabiFall2022 >
CSC102SylF2022 > CSC102F2022Lab3
Topic revision: r2 - 2022-08-23 - cathybareiss