Computers and Technology

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);

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 11:30, leapfroggiez
Auser is given read permission to a file stored on an ntfs-formatted volume. the file is then copied to a folder on the same ntfs-formatted volume where the user has been given full control permission for that folder. when the user logs on to the computer holding the file and accesses its new location via a drive letter, what is the user's effective permission to the file? a. read b. full control c. no access d. modify e. none of the above
Answers: 1
image
Computers and Technology, 24.06.2019 00:00, babysisjessica1
For the following example of making a peanut butter and jelly sandwich, identify which are inputs, processes, or outputs: bread scooping and spreading peanut butter plate scooping and spreading jelly finished sandwich putting two pieces of covered bread together dirty plate crumbs
Answers: 2
image
Computers and Technology, 24.06.2019 02:50, rurbanok12
Be sure to answer all parts. synthesize the following compound from benzene. a. b. c. d. e. f. reaction [1] conditions: a b c d e f reaction [1] product: draw structure reaction [2] conditions: a b c d e f reaction [2] product: draw structure reaction [3] conditions: a b c d e f reaction [3] product:
Answers: 3
image
Computers and Technology, 24.06.2019 09:30, bhadd4385
What is the definition of digital literacy?
Answers: 1
Do you know the correct answer?
The cost to become a member of a fitness center is as follows: the membership fee per month is $50.0...

Questions in other subjects: