Exercises 1

Practice the design process making each of these functions:

  • Write a function that takes in the radius of a circle and outputs the circumference.

  • Write a function to find the cost of a cart full of g pounds of grapefruit and b pounds of bananas. The grapefruit costs $1.49/lb and the bananas cost $0.59/lb.