# Projected Values

You are required to design a program for Health Club Membership. The program requires user to input the members category (Adult or Senior Citizen), duration of the membership and number of installment months. The user can get 20% discount if duration of the membership is equal to 24 months or more, and monthly installment is allowed if the duration of membership is at least 12 months. This program must be able to calculate and display total of the fees and monthly installment. The input process must be repeated until user choose to exit from the program. Table 1 shows the rate of the respective members category.

Table 1 – Rate per month for Membership

 Members category Rate (RM) per month Adult 50 Senior Citizen 20

The sample input and output of the program is displayed as follow:

2. Senior Citizen Membership
3. Exit

Enter duration of membership: 12

Enter number of installment months: 6

The total fees are RM 600

Month     Installment     Balance

1                 100                      500

2                 100                      400

3                 100                      300

4                 100                      200

5                 100                      100

6                 100                       0

2. Senior Citizen Membership
3. Exit

Enter duration of membership: 26

Enter number of installment months: 4

The total fees are RM 416

Month     Installment     Balance

1               104                 312

2               104                 208

3               104                 104

4               104                 0

2. Senior Citizen Membership
3. Exit

Good bye.

Based on the above programming problem:

1. Analyse the problem to identify required items to be used in designing algorithm
2. Write an algorithm in a pseudo code
3. Draw a flowchart based on the pseudo code
4. Produce a tracing table to show the projected values

Need help with this assignment or a similar one? Place your order and leave the rest to our experts!