Question
the membership fee per month is $50.00 the personal training session fee is $30.00 the senior citizens discount is 30% if the membership is bought
the membership fee per month is $50.00
the personal training session fee is $30.00
the senior citizens discount is 30%
if the membership is bought and paid for 12 or more months, the discount is 15%;
if more than five personal training sessions are bought and paid for, the discount on each session is 20%.
Write a program that determines the cost of a new membership. Your program must contain a function that displays the general information about the fitness center and its charges, a function to get all the necessary information to determine the membership cost, and a function to determine the membership cost. Your program must also be a menu driven program. Given the user 2 options as follows:
Calculate membership costs.
Quit program.
If the user enters a as the option, then display general information, get their details and calculate costs. Then display the menu again. If the user enters b, quit the program with an appropriate message. This must loop continuously until the user enters b to quit. (Do not use any global variables.)
You must use the given function prototypes. You can add more functions if you like.
void information();
void getInfo(bool &senior, int &months, int &personal);
double calcCost(bool senior, int months, int personal);
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