Question: The language is C++. Need programming help. I have a basic structure built for this program but can't quite seem to make it work flawlessly.

The language is C++. Need programming help. I have a basic structure built for this program but can't quite seem to make it work flawlessly. Can anybody help out with this?

Becoming a member of an aquatic center costs:

Fee per month is $50

Personal training session fee is $30

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. Must include a function that shows the general information about the aquatic center and its costs, as well as function to get all the necessary information to determine the membership cost, and finally a function to determine the membership cost. Your program must also be a menu driven program. Give the user 2 options as follows:

a. Calculate membership costs.

b. quit this 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 a fitting message. This must loop until the user enters b to quit. (Without the use of global variables)

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

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 Databases Questions!