Question: Create a Python program that reads the age and length of membership and then calculates the gym membership fee. ( Use a function ) Test

Create a Python program that reads the age and length of membership and then calculates the gym membership fee. ( Use a function)
Test the function with some input data; validate the inputs using repetition to ensure only positive values are given for the age and length, and display an error message if otherwise. Save your Python program and submit it
Use the following criteria:
Age/Length
1 month
3 months
6 months
12 Months
5 to 12
$40
$110
$220
$450
13 to 26
$50
$140
$280
$550
27 to 55
$60
$170
$340
$650
56 to 100
$30
$80
$160
$250
Previous

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!