Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 25%

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. Give the user 2 options as follows:

a. Calculate membership costs.

b. quit this program.

If the user enters a or A as the option, then display general information, get their details and calculate costs. Then display the menu again. If the user enters b or B, quit the program with an appropriate message. This must loop continuously until the user chooses to quit. (Do not use any global variables.)

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_2

Step: 3

blur-text-image_3

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

Database And Expert Systems Applications 19th International Conference Dexa 2008 Turin Italy September 2008 Proceedings Lncs 5181

Authors: Sourav S. Bhowmick ,Josef Kung ,Roland Wagner

2008th Edition

3540856536, 978-3540856535

More Books

Students also viewed these Databases questions