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…​

(EXAMPLE (______________ ______)_______________)

(EXAMPLE (______________ ________)_________________)

Definition

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

(define (______________ _____________)

________________________)

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…​

(EXAMPLE (_____________ _________)________________)

(EXAMPLE (_____________ ____________)___________________)

Definition

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

(define (_____________ ____________________)

_____________________________)

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). CCbadge Bootstrap:Algebra by Emmanuel Schanzer, Jen Poole, Ed Campos Jr, Flannery Denny, and Dorai Sitaram 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.