8.1 Draw irregular polygons (draw a rhombus)

Scratch solution

View solution

This is just one of many possible solutions:

when green flag clicked
clear
pen down
set pen size to (3)
ask [Enter one angle of a rhombus:] and wait
set [angle v] to (answer)
repeat (2)
  move (100) steps
  turn ccw (angle) degrees
  move (100) steps
  turn ccw ((180) - (angle)) degrees
end
pen up

Back to programming challenge

Extra Challenge

Extra challenge #1: Write programs to draw following images. To choose the xy-grid background, click on Stage and choose “backdrop from library”. Select xy-grid backdrop and press “ok”.

A 2D house.
A 2D boat.