Respond to the questions. Go to WeScheme to test your code.

1 What kind of triangle does the triangle function produce?

There are lots of other kinds of triangles! And WeScheme has lots of other functions that make triangles!

; triangle :: (Numbersize, Stringfill-style, Stringcolor) -> Image

; right-triangle :: (Numberbase, Numberheight, Stringfill-style, Stringcolor) -> Image

; isosceles-triangle :: (Numberleg, Numberangle, Stringfill-style, Stringcolor) -> Image

2 Why do you think triangle only needs one number, while right-triangle and isosceles-triangle need two numbers?

3 Write right-triangle expressions for the images below using 100 as one argument for each.

A solid black right triangle, about half as wide as it is tall

A solid back right triangle, about half as tall as it is wide

4 Write isosceles-triangle expressions for the images below using 100 as one argument for each.

a tall, narrow isosceles triangle

a short, wide isosceles triangle

5 Write 2 expressions that would build right-isosceles triangles. Use right-triangle for one expression and isosceles-triangle for the other expression.

Right isosceles triangle

6 Which do you like better? Why?

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927). CCbadge Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.