Difference: CSC102F2022Lab3 (3 vs. 4)

Revision 42022-09-06 - cathybareiss

Line: 1 to 1
 
META TOPICPARENT name="CSC102SylF2022"

Geometric drawing

Objectives

Line: 8 to 8
 
  1. Reinforce reading from the brick

Assignment

  1. Create a clean program that will "draw" a 3, 4, or 5 sided figure (with even sides) based on the button from the brick.
Changed:
<
<
    1. If the left button is pressed, draw a triangle (degree angle)
>
>
    1. If the left button is pressed, draw a triangle (60 degree angle)
 
    1. If the middle button is pressed, draw a square (90 degree angle)
    2. If the right button is pressed, draw a five sided polygon (approximately 108 degree angle)
  1. Additional requirements
    1. You should use a count controlled loop
    2. You must use at least two variables.
Changed:
<
<
    1. Inside the selection you can only have one block per option
>
>
    1. Inside the selection you can only have variables blocks (only one is optimal but not required). No repetition or arithmetic blocks inside the selection
 
    1. You may only have two instances of motor blocks

Submission instructions

  1. Due date is found on Canvas
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback