Answered step by step
Verified Expert Solution
Question
1 Approved Answer
An exercise club charges $25 per month if you join for 12 months or less, and $22 per month if you join for more than
An exercise club charges $25 per month if you join for 12 months or less, and $22 per month if you join for more than 12 months. Write a program that accepts a length of membership (in whole months), determines the correct monthly fee, and calculates the total bill.
Output the number of months, charge per month, and total bill. Remember to format money with a $ and 2 decimal places.
Test the program with a 10-month membership and a 24-month membership.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started