Referenced from lesson Restating the Problem (Spring, 2021)

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

examples:

___________ (_) is_______________

___________ (_) is_______________

end

Definition

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

fun _________(______):

_____________________

end

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

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