Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how to do this in c++?? Assignment: The cost to become a member of a fitness center is as follows: the membership fee per month

how to do this in c++??

image text in transcribed

image text in transcribed

Assignment: The cost to become a member of a fitness center is as follows: 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: 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 an appropriate message. This must loop continuously until the user enters 'b' to quit. (Do not use any 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); Deliverables: Please upload your program source code (.cpp file) as usual as well as a document with a step by step algorithm. Name your source code file a06.cpp and your algorithm a06algorithm.txt (or .doc). Be sure to comment your code as required, and to acknowledge any sources of help you may have received. Your header comments should include the identification of the assignment and your name(s). It should also include a comment indicating any sources of help you may have received. If there were none, the line should read: // Sources: None

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

b. What groups were most represented? Why do you think this is so?

Answered: 1 week ago