Referenced from lesson Solving Word Problems (Spring, 2021)

Write the contracts used to create each of the following collections of examples.

1

(EXAMPLE (big-triangle 100 "red") (triangle 100 "solid" "red")) (EXAMPLE (big-triangle 200 "orange") (triangle 200 "solid" "orange"))

2

(EXAMPLE (purple-square 15) (rectangle 15 15 "outline" "purple")) (EXAMPLE (purple-square 6) (rectangle 6 6 "outline" "purple"))

3

(EXAMPLE (banner "Game Today!") (text "Game Today!" 50 "red")) (EXAMPLE (banner "Go Team!") (text "Go Team!" 50 "red")) (EXAMPLE (banner "Exit") (text "Exit" 50 "red"))

4

(EXAMPLE (twinkle "outline" "red") (star 5 "outline" "red")) (EXAMPLE (twinkle "solid" "pink") (star 5 "solid" "pink")) (EXAMPLE (twinkle "outline" "grey") (star 5 "outline" "grey"))

5

(EXAMPLE (half 5) (/ 5 2)) (EXAMPLE (half 8) (/ 8 2)) (EXAMPLE (half 900) (/ 900 2))

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). CCbadge Bootstrap:Algebra 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.