Referenced from lesson Domain and Range

By now you know how to make stars in this programming language. Can you figure out how to make triangles, based on what you know about making stars? Rectangles? What other shapes might we be able to make? When you’ve discovered code to make a new shape, draw the Circle of Evaluation in the table below, along with a sketch of the shape. Then add the function to your contracts page.

1) Use the space below to draw the Circles of Evaluation for the new functions, and draw a picture of what the function produces.

Circle of Evaluation Image

star
50"solid""black"
(star 50 "solid" "black")

produces →

 

 

produces →

 

 

produces →

 

 

produces →

Mystery Functions!

2) There is a function called regular-polygon with 4 inputs. What do they mean?

3) There is a function called radial-star with 5 inputs. What do they mean?

4) There is a function called text. Try to figure out how to use it! What do the inputs mean?

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). CCbadge Bootstrap:Integrated Oklahoma by Jen Poole is licensed under a Creative Commons 4.0 Unported License. Based on a work at www.BootstrapWorld.org. Permissions beyond the scope of this license may be available by contacting schanzer@BootstrapWorld.org.