subject

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 ( > 60) 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%.
Develop a C++ program that determines the cost of a new membership. The 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. Also must 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.)
Must use the given function prototypes: void information(); void getInfo(bool &senior, int &months, int &personal); double calcCost(bool senior, int months, int personal);

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:10
Consider a direct-mapped cache with 216 words in main memory. the cache has 16 blocks of 8 words each. it is a word-addressable computer (rather than a byte-addressable computer which we normally discuss). (a) how many blocks of main memory are there? (b) what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, cache block, and block offset fields (if they apply)? (c) to which cache block will the memory reference db6316 map?
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
How can you make your column headings stand out?
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Selective is defined as paying attention to messages that are consistent with one’s attitudes and beliefs and ignoring messages that are inconsistent.
Answers: 1
You know the right answer?
The cost to become a member of a fitness center is as follows: the membership fee per month is $50.0...
Questions
question
Mathematics, 01.02.2020 20:43
Questions on the website: 13722363