You are on page 1of 24

Candidate Name: Jaheme Henry

Candidate Number: 090032


Centre Name: Mackenzie High School
Centre Number: 090032
Territory: Guyana
Year of Examination: 2024
Teacher’s Name: Ms. D. Blair
PROBLEM STATEMENT
Creating a system for overseeing student tuition payments through a pseudocode algorithm. The system is
designed to gather essential student details such as name, ID number, and grade level. Students are
presented with three payment plan: E-Full Payment, Bi-Payment, or Tri-payment. Each payment plan
entails distinct discounts or interest rates. The program concludes by displaying the students name and ID,
accompanied by the remaining balance, factoring in the chosen payment option.
Narrative Algorithm
Start
VARIABLES
Set first name to F_i_r_Na_me.
Set last name to _La_s_Na_m_e.
Set student identification number to _I_D_num.
Set grade level to _Grde_Lv_L.
Set payment plan to P_a_y_Opt.
Set E-Full to E1
Set Bi-Payment to B2
Set Tri-Payment to T3
Set school fee to S_kl_Fee.
Set interest to I_st.
Set discount to D_Count.
Set amount paid to Amt_Paid.
Set actual amount owed to Amt_ow_ed.
Set remaining balance to R_blc.
Set program continuation choices to Choice.
Set Lower School to Lower_School
Lower_School= $210000
Set Upper School to Upper_School
Upper_School = $270000
Set Sixth Form to Six_Form
Six_Form =$300000
INPUT
Input student's first name.
Input student’s last name
Input student identification number.
Input grade level.
PROCESSING
School fee based on grade level:
If Grade level=7 or Grade level=8 or Grade level=9, then School fee= Lower_School
If Grade level=10 or Grade level=11, then School= Upper_School
If Grade level=12 or Grade level=13, then School fee= Six_Form

Choose Payment Plan:


E-Full, “E1,” offers a 10% Discount when school fee is paid in full.
Bi-Payment, “B2,” is a two part payment that offers a 5% discount.
Tri-Payment, “T3,” is a three part payment that offers a 7.5% interest.

Depending on the selected payment option:


if P_a_y_Opt='E1' then,
D_Count:=(S_kl_Fee * -0.1)
Amt_ow_ed:=(S_kl_Fee)-(D_Count)
Amt_Paid:=(Amt_ow_ed) / 1
if P_a_y_Opt='B2' then,
D_Count:=(S_kl_Fee * -0.05)
Amt_ow_ed:=(S_kl_Fee)-(D_Count)
Amt_Paid:=(Amt_ow_ed) / 2
if P_a_y_Opt='T3' then,
I_st:=(0.075*S_kl_Fee)
Amt_ow_ed:=(S_kl_Fee)- (I_st)
Amt_Paid:=(Amt_ow_ed) / 3

Display the Actual Amount Owed.


Display the Amount Paid, the part payment.

Prompt the user to enter the Actual Amount Owed.


Calculate Remaining Balance:
If P_a_y_Opt='E1' then,
R_blc:=(Amt_ow_ed) - (Amt_Paid)

If P_a_y_Opt='B2' then,
R_blc:=(Amt_ow_ed) - (Amt_Paid)

If P_a_y_Opt='T3' then,
R_blc:=(Amt_ow_ed) - (Amt_Paid)

OUTPUT

Display remaining balance.

Ask the user if they want to continue or stop the program:


If ‘1’ is assigned to Choice, then quit program. Else
If ‘2’ is assigned to Choice, then continue program

End
VARIABLES

VARIABLE MEANING DATA TYPE


_I_D_num Student identification String
Choice Users choice Character
F_i_r_Na_me Students first name String
_La_s_Na_m_e Students last name String
_Grde_Lv_L Student grade level String
P_a_y_Opt Payment Plan Character
S_kl_Fee Tuition fee Real Number
Amt_ow_ed Total amount to be paid Real Number
R_blc Balance Real Number
Amt_Paid Amount paid Real Number
D_Count Discount Real Number
I_st Interest Real Number
E1 E-Full Character
B2 Bi-payment Character
T3 Tri-payment Character
Lower_School Lower school tuition fee Real Number
Upper_School Upper school tuition fee Real Number
Six_Form Sixth form tuition fee Real Number
IPO Chart
Input Processing Output
F_i_r_Na_me Read First Name First Name
_La_s_Na_m_e Read Last Name Last Name
_I_D_num Read ID Number ID Number
_Grde_Lv_L Read Grade Level Grade Level
S_kl_Fee If Grade Level is 7, 8, or 9; then School Fee
School Fee will be $210000.

If Grade Level is 10 or 11, then


School Fee will be $270000.

If Grade Level is 12 or 13, then


School Fee will be $300000.
P_a_y_Opt If the E-Full Payment plan is Discount or interest
selected, then:

D_Count:=S_kl_Fee * -0.1

If the Bi-Payment plan is


selected, then :

D_Count:=S_kl_Fee * -0.05

If the Tri-Payment plan is


selected, then:

I_st:=0.075*S_kl_Fee

Amt_ow_ed If E-Full is selected, then the Amount owed


total amount owed is:

Amt_ow_ed=S_kl_Fee -
D_Count

If Bi-Payment is selected, then


the total amount owed is:

Amt_ow_ed=S_kl_Fee -
D_Count

If Tri-Payment is selected, then


the total amount owed is:

Amt_ow_ed=S_kl_Fee - I_st

Amt_Paid If E-Full is selected, then the Amount paid in parts


amount paid in parts is:
Amt_Paid:=Amt_ow_ed / 1

If Bi-Payment plan is selected,


then the amount paid in parts is:

Amt_Paid= Amt_ow_ed / 2

If the Tri-Payment plan is


selected, then the amount paid in
parts is:

Amt_Paid= Amt_ow_ed / 3

R_blc If E-Full, Bi-Payment, or Tri- Remaining Balance


Payment is selected, then:

R_blc:=Amt_ow_ed - Amt_Paid
Trace Table
INPUT PROCESSING OUTPUT
F_i_r_N _La_s_Na _I_D_nu _Grde_Lv_ P_a_y_O Amt_ow
Steps Calculations a_me _m_e m L S_kl_Fee pt D_Count/I_st _ed Amt_Paid R_blc Choices
1 START
2
3
4
Lower_Sc
hool = 7,
8 or 9
Upper_S
chool=
10 or 11
Six_Form
= 12 or
5 13
6 If Grade Level
is
Lower_School
, then
S_kl_Fee =
$210000.

If Grade Level
is
Upper_School
, then
S_kl_Fee =
$270000.
If Grade Level
is Six_Form,
then S_kl_Fee
= $300000.
E-Full:
‘E1’
‘E1’=
10%
discount

Bi-
Payment:
‘B2’
‘B2’= 5%
discount

Tri-
Payment:
‘T3’
‘T3’=
7.5%
7 interest
D_Count =
S_kl_Fee * -
0.010
D_Count =
S_kl_Fee * -
0.05
I_st= S_kl_Fee
8 * -0.075
9 Amt_ow_ed = ‘E1’= 1
S_kl_Fee - part
D_Count ‘B2’= 2
Amt_ow_ed = parts
S_kl_Fee -
D_Count
Amt_ow_ed = ‘T3’= 3
S_kl_Fee - I_st parts
Amt_Paid=
Amt_ow_ed /
1
Amt_Paid=
Amt_ow_ed /
2
Amt_Paid=
Amt_ow_ed /
10 3
R_blc=
Amt_ow_ed -
11 Amt_Paid
If
Choice=
‘1’ Stop
Program
If
Choice=
‘2’
Continue
12 2 Program
13 CONTINUE
14 START
15
16
17
18 Lower_Sc
hool = 7,
8 or 9
Upper_S
chool=
10 or 11
Six_Form
= 12 or
13
If Grade Level
is
Lower_School
, then
S_kl_Fee =
$210000.

If Grade Level
is
Upper_School
, then
S_kl_Fee =
$270000.

If Grade Level
is Six_Form,
then S_kl_Fee
19 = $300000.
20 E-Full:
‘E1’
‘E1’=
10%
discount

Bi-
Payment:
‘B2’
‘B2’= 5%
discount
Tri-
Payment:
‘T3’
‘T3’=
7.5%
interest
D_Count =
S_kl_Fee * -
0.010
D_Count =
S_kl_Fee * -
0.05
I_st= S_kl_Fee
21 * -0.075
Amt_ow_ed =
S_kl_Fee -
D_Count ‘E1’= 1
Amt_ow_ed = part
S_kl_Fee - ‘B2’= 2
D_Count parts
Amt_ow_ed = ‘T3’= 3
22 S_kl_Fee - I_st parts
Amt_Paid=
Amt_ow_ed /
1
Amt_Paid=
Amt_ow_ed /
2
Amt_Paid=
Amt_ow_ed /
23 3
24 R_blc=
Amt_ow_ed -
Amt_Paid
If
Choice=
‘1’ Stop
Program
If
Choice=
‘2’
Continue
25 2 Program
26 CONTINUE
27 START
28
29
30
Lower_Sc
hool = 7,
8 or 9
Upper_S
chool=
10 or 11
Six_Form
= 12 or
31 13
32 If Grade Level
is
Lower_School
, then
S_kl_Fee =
$210000.

If Grade Level
is
Upper_School
, then
S_kl_Fee =
$270000.

If Grade Level
is Six_Form,
then S_kl_Fee
= $300000.
E-Full:
‘E1’
‘E1’=
10%
discount

Bi-
Payment:
‘B2’
‘B2’= 5%
discount

Tri-
Payment:
‘T3’
‘T3’=
7.5%
33 interest
D_Count =
S_kl_Fee * -
0.010
D_Count =
S_kl_Fee * -
0.05
I_st= S_kl_Fee
34 * -0.075
Amt_ow_ed =
S_kl_Fee -
D_Count ‘E1’= 1
Amt_ow_ed = part
S_kl_Fee - ‘B2’= 2
D_Count parts
Amt_ow_ed = ‘T3’= 3
35 S_kl_Fee - I_st parts
Amt_Paid=
Amt_ow_ed /
1
Amt_Paid=
Amt_ow_ed /
2
Amt_Paid=
Amt_ow_ed /
36 3
R_blc=
Amt_ow_ed -
37 Amt_Paid
If
Choice=
‘1’ Stop
Program
If
Choice=
‘2’
Continue
38 1 Program
39 END
Test Data
Last First Grade School Payment Discount/ Amount to be Total Payment Balance to be
ID Name Name Level Fee Plan Interest(%) Discount/Interest($) Paid made paid
Tri- $
KC1010 Callahan Hakeem 10 270000 Payment 10% 20250 290250 96750 193,500.00
Bi- $
KC0805 Campos Kamryn 8 210000 Payment -5% -10500 199500 99750 99,750.00
$
JC0812 Cannon Jackson 8 210000 E-Full -7.50% -21000 189000 189000 -
$
JC0718 Chase Jayceon 7 210000 E-Full -7.50% -21000 189000 189000 -
$
AD1220 Dennis Aidan 12 300000 E-Full -7.50% -30000 270000 270000 -
Bi- $
LE1109 Estes Lana 11 270000 Payment -5% -13500 256500 128250 128,250.00
$
RG1207 Grimes Rosalie 12 300000 E-Full -7.50% -30000 270000 270000 -
$
VG1115 Gurrero Vienna 11 270000 E-Full -7.50% -27000 243000 243000 -
Tri- $
EH1217 Hardy Eliza 12 300000 Payment 10% 22500 322500 107500 215,000.00
Bi- $
AH0913 Ho Avery 9 210000 Payment -5% -10500 199500 99750 99,750.00
Bi- $
HK1002 Kane Harry 10 270000 Payment -5% -13500 256500 128250 128,250.00
$
GK0906 Kelley Gideon 9 210000 E-Full -7.50% -21000 189000 189000 -
Tri- $
AM0703 Medina Allyson 7 210000 Payment 10% 15750 225750 75250 150,500.00
Montoy Tri- $
GM1304 a George 13 300000 Payment 10% 22500 322500 107500 215,000.00
Tri- $
MN1014 Nielsen Morgan 10 270000 Payment 10% 20250 290250 96750 193,500.00
Tri- $
KO0911 Owen Kimber 9 210000 Payment 10% 15750 225750 75250 150,500.00
$
SR1101 Rogers Steve 11 270000 E-Full -7.50% -27000 243000 243000 -
Tri- $
BR1316 Romero Bryce 13 300000 Payment 10% 22500 322500 107500 215,000.00
Tri- $
HS1108 Sims Harlan 11 270000 Payment 10% 20250 290250 96750 193,500.00
Tri- $
BT12021 Tanner Brody 12 300000 Payment 10% 22500 322500 107500 215,000.00
Bi- $
AV0719 Vega Angie 7 210000 Payment -5% -10500 199500 99750 99,750.00
Pseudocode

Program McAcademyHigh;
{Creating a system for overseeing student tuition payments through a pseudocode algorithm. The system
is designed to gather essential student details such as name, ID number, and grade level. Students are
presented with three payment plan: E-Full Payment, Bi-Payment, or Tri-payment. Each payment plan
entails distinct discounts or interest rates. The program concludes by displaying the students name and ID,
accompanied by the remaining balance, factoring in the chosen payment option.}
{Program author, Jaheme Henry}
{Date program was written, March 12th 2024}

Const
Six_Form=300000;
Upper_School=270000;
Lower_School=210000;

Var
F_i_r_Na_me,_La_s_Na_m_e,_Grde_Lv_L:String;
_I_D_num:String;
Choice,P_a_y_Opt:Char;
D_Count,I_st:Real;
S_kl_Fee,Amt_ow_ed,Amt_Paid,R_blc:Real;
E1,B2,T3:Char
;

Begin
Repeat;
Writeln('Hello Good Day!,Welcome To MC Academy High,Kindly answer the few question given');
Writeln('Kindly enter student First Name');
Readln(F_i_r_Na_me);
Writeln('Thank you!,Please enter student Last Name');
Readln(_La_s_Na_m_e);
Writeln('Thank you!,Please enter student ID Number');
Readln(_I_D_num);
Writeln;
Writeln('Kindly enter students Grade Level,by stating which (7-13)');
Readln(_Grde_Lv_L);

If (_Grde_Lv_L='7') or (_Grde_Lv_L='8') or (_Grde_Lv_L='9') Then


Begin;
Writeln('The Students school fee is 21000.00');
End;
If (_Grde_Lv_L='10') or (_Grde_Lv_L='11') then
Begin;
Writeln('The student is classed in the Upper Class');
S_kl_Fee:=270000.00;
End;
Writeln;
If(_Grde_Lv_L='12') or (_Grde_Lv_L='13')Then
Begin;
Writeln('The student is classed in Sixth Form');
S_kl_Fee:=300000.00;
Writeln('The student school fee is 300000.00');
End;
Writeln;
Writeln('Your tuition varies based on the payment plan you select');
Writeln('There are three payment plans,');
Writeln('E-Full offers a 10% Discount when school fee is paid in full');
Writeln('Bi_Payment is a two part payment that offers a 5% discount.');
Writeln('Tri-Payment is a three part payment that offers a 7.5% interest');
Writeln('When you select a Payment Plan it allows us to calculate your balance');
Writeln('Select one of the Payment Plans below by selecting a number');
Writeln('E1|E-Full Payment');
Writeln('B2|Bi-Payment');
Writeln('T3|Tri-Payment');

Writeln;
Readln(P_a_y_Opt);
Writeln;
if P_a_y_Opt='1' then
Begin;
D_Count:=(S_kl_Fee * -0.1);
Amt_ow_ed:=(S_kl_Fee)-(D_Count);
Amt_Paid:=(Amt_ow_ed) / 1 ;
Writeln('Your Actual Owed is $',Amt_ow_ed:4:2);
Writeln('If you selected the E-Full Payement Plan, you must pay the tuition in full');
WriteLn('You part payment is $',Amt_Paid:4:2);
End;
if P_a_y_Opt='2' then
Begin;
D_Count:=(S_kl_Fee * -0.05);
Amt_ow_ed:=(S_kl_Fee)-(D_Count);
Amt_Paid:=(Amt_ow_ed) / 2 ;
Writeln('Your actual amount owed is $',Amt_ow_ed:4:2);
Writeln('If you selected the Bi-Payement Plan, you must pay Atleast 50% of the tuition');
WriteLn('You part payment is $',Amt_Paid:4:2);
End;
if P_a_y_Opt='3' then
Begin;
Writeln('7.5% interest of the school fee will be added onto the tuition');
I_st:=(0.075*S_kl_Fee);
Amt_ow_ed:=(S_kl_Fee)- (I_st);
Amt_Paid:=(Amt_ow_ed) / 3 ;
Writeln('Your Actual Amount Owed is $',Amt_ow_ed:4:2);
Writeln('If you selected the Tri-Payment Payement Plan, you are required to pay the tuition in three
parts');
WriteLn('You part payment is $',Amt_Paid:4:2);
End;

case P_a_y_Opt of
'1': Begin
R_blc:=(Amt_ow_ed) - (Amt_Paid);
Writeln('Your remaining balance is $',R_blc:4:2);
End;
'2': Begin
R_blc:=(Amt_ow_ed) - (Amt_Paid);
Writeln('Your remaining balance is $',R_blc:4:2);
End;
'3': Begin
R_blc:=(Amt_ow_ed) - (Amt_Paid);
Writeln('Your remaining balance is $',R_blc:4:2);
End;
End;
WriteLn;
Writeln('Press 1 to Quit and 2 to Continue.,');
Readln(choice);
Until(Choice='1');
End.
Program Evidence

You might also like