Referenced from lesson Restating the Problem

Directions: Getting a gym membership costs \$150, and then there’s a \$45/month fee after that. Write a function `globo-gym` that takes in a number of months and produces the cost of a membership for that many months.

 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: A health insurance policy requires customers to pay \$50 to visit the doctor plus 5% of the cost of the procedures administered. Write a function `medical-bill` that takes in the cost of the procedures and calculates the patientâ€™s bill.

 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). 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.