C++

[10] The cost to become a member of a fitness center is as follows: a) the senior citizen discount is 30%, if the peson is of [10] The cost to become a member of a fitness center is as follows: a) the senior citizen discount is 30%, if the peson is of age 60 or greater; b) if the membership is bought and paid for 12 or more months, the discount is 20%; and c) if 5 or more personal training sessions are bought and paid for in advamce, the discount for each session is 15%. Write a menu driven program that determines the cost of each 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 Use appropriate parameters to pass information in and out of a function. (Do not use any global variables.) Note: you may choose what services are offered at the gym and at what price for the first function



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *