PROGRAM SET 2 - MY BOX
: You must include ALL 4 steps in the design recipe.
: Do your examples by HAND and staple to your printed code.
: Test with:
1. Make a BOX where:
a. the width is the longest length
b. the height is a little more than 1/4 the length
c. the depth is a little less than ½ the length.
d. Plan this first using plain paper.
e. Label the variable size of ALL sides.
f. I will give you card stock for your final project.
2. Write 3 auxiliary functions that will calculate the perimeter (in purpose state what perimeter using – edges, ribbon around), surface area and volume of a box given the dimensions.
3. Write 3 auxiliary functions that will calculate the perimeter (use same purpose as in #2), surface area and volume of a box given the width, the height scale factor and the depth scale factor. Reuse the above functions.
4. Write a function that will calculate the cost of producing your box given the cost of 1 square inch and number of boxes to be made.
§ Write Scheme functions that will draw both the 2-D and 3-D box diagram.
§ Write any additional auxiliary functions and a main function to enhance the Box project.