Site hosted by Angelfire.com: Build your free website today!

 

 

 

 

 


We need to calculate an applicant’s membership fees for the “Utica Health Club”.  Write the C++ program to calculate the fees based on the following information.

 

FEES:

            Sex: Females will pay $12.00, and Males will pay $10.00.

            Age: Age 21 and over will pay $40.00, under 21 will pay $15.00.

Class:  Student will pay $75 if there age is under 21 and $90 if their age is 21+

            Standard will pay $100

            Executive will pay $150

final_fee= sex_fee + age_fee + class_fee;

 

The program will ask the person to select froma menu of all options; this will make checking easier.

 

Please enter your first and last name- Britany Backstreet

 

Please enter the number of your age group:

            1) under 21

            2) 21 and over

1

Please enter the number of your sex:

1)      Male

2)      Female

2

 Please enter the type of membership desired

1)      Student                              (if (class==1 && age==1) student fee=75;)

2)      Standard

3)      Executive

1

 

Output

UTICA HEALTH CLUB FEE ASSESMENT

 

NAME: Britany Backstreet

 

Category          Type                Fee

SEX                 Female             $12.00

AGE                Under 21          $15.00

CLASS            student             $75.00

 

Subtotal: $102.00                     Tax: $6.12

**********************************

Please pay: $108.12                 THANKYOU!