# Draw irregular polygons (draw a rhombus)

Challenge Level: Growing experience

Learning outcomes

Students will be able to:

## Requirement:

Write a program that asks the user to enter one angle of a rhombus and draws a rhombus with the given angle and each side equal to 100 steps.

## Testing examples:

Your program should display the outputs shown in this table for the given inputs provided;

Input Output
45

90

## Languages

Scratch

#### What it should look like

Click on the green flag to see the expected output of your program.

Recommended blocks
when green flag clicked
set [angle v] to (answer)

ask [Enter one angle of a rhombus:] and wait

repeat (2)
end
clear

pen down

pen up

set pen size to (3)
move (100) steps

turn ccw (angle) degrees

move (100) steps

turn ccw ((180) - (angle)) degrees
Hints
• A rhombus has 4 equal straight sides.
• Opposite sides of a rhombus are parallel and opposite angles are equal.