Referenced from lesson Restating the Problem

Directions: Write a function rect-perimeter that takes in the length and width of a rectangle and returns the perimeter of that rectangle.

Contract and Purpose Statement

Every contract has three parts…​

# ______________::______________->______

# ________________________________________________________________________________________

Examples

Write some examples, then circle and label what changes…​

examples:

________________ (______)is _____________

________________ (________)is _______________

end

Definition

Write the definition, giving variable names to all your input values…​

fun ______________(_____________):

______________________

end

Directions: Write a function rectprism-vol that takes in the length, width, and height of a rectangular prism and returns the Volume of a rectangular prism.

Contract and Purpose Statement

Every contract has three parts…​

# _____________::______________________->______

# ________________________________________________________________________________________

Examples

Write some examples, then circle and label what changes…​

examples:

_______________ (__________)is ______________

_______________ (_____________)is _________________

end

Definition

Write the definition, giving variable names to all your input values…​

fun _____________(_____________________):

___________________________

end

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.