Professional Documents
Culture Documents
Problem Statement
Problem Statement
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
End
VARIABLES
D_Count:=S_kl_Fee * -0.1
D_Count:=S_kl_Fee * -0.05
I_st:=0.075*S_kl_Fee
Amt_ow_ed=S_kl_Fee -
D_Count
Amt_ow_ed=S_kl_Fee -
D_Count
Amt_ow_ed=S_kl_Fee - I_st
Amt_Paid= Amt_ow_ed / 2
Amt_Paid= Amt_ow_ed / 3
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);
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