Referenced from lesson Contracts
triangle-sas::, Number, Number, Number, String, String -> Image
Match each triangle-sas expression (left) with the image it creates (right).
Expression | Image | ||
---|---|---|---|
1 |
(triangle-sas 120 45 70 "solid" "black") |
A |
|
2 |
(triangle-sas 120 90 70 "solid" "black") |
B |
|
3 |
(triangle-sas 120 135 70 "solid" "black") |
C |
|
4 |
(triangle-sas 70 135 120 "solid" "black") |
D |
Think about how you would describe each of the arguments that triangle-sas takes in to someone who’d never used the function before and annotate the contract below using descriptive variable names.
triangle-sas:: (
:: Number,
:: Number,
:: Number,
:: String,
:: String
) -> Image
Add examples of each of the triangle functions we’ve explored to your contracts page.
If you have time, experiment with the triangle-asa function.
triangle-asa:: Number, Number, Number, String, String -> Image
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). 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.