Psuedo Code

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

PSUEDO CODE

Program Name: IT_SBA_24


Description: This program was created to help parents/guardians determine if they would be
having a discount after selecting a payment plan.
Variables:
Stud_Fname, Stud_Lname, Pmt_Plan, Grade Level, Status is of type string.
Tuition, Number of discount student is of type long integer.
Discount, Discount_Amt, Tuition_Due, Total Discounts, Avg_Discount is of type real.

BEGIN
Output “Please enter the Student First Name”
Input “Stud_Name”
Output “Please enter the Student ID”
Input “Stud_ID”
Output “Please enter the Grade”
Input “Grade”
Output “Please enter the Grade Level”
Input “Grade Level”
Output “Please enter Payment Plan”
Input “PMT_PLAN”
Output “Please enter the Status”
Input “Status”
Generate Tuition and Grade Level
If Grade Level <=9
THEN Tuition= 120,000 and Grade Level= Lower School
ELSE
If Grade Level <=11
THEN Tuition= 170,000 and Grade Level= Upper School
ELSE Tuition= 200,000 and Grade Level= Sixth Form
Generate Rate
If Payment Plan= E-full
THEN Discount= -0.1 (10%)
If Payment Plan= Bi-Payment
THEN Discount= -0.05 (5%)
If Payment Plan= Tri-Payment
THEN Discount= -0.05 (5%)
Discount Amount:= Tuition*Discount Percent
Tuition Due:= Tuition + Discount Percent
If Status= Discount Due
THEN
Output “**********************”
Output “Student First Name” STUD_FNAME
Output “Student Last Name” STUD_LNAME
Output “Student ID” STUD_ID
Output “Grade Level” GRADE LEVEL
Output “Grade” GRADE
Output “Tuition” TUITION
Output “Payment Plan” PMT_PLAN
Output “Status” STATUS
Output “Discount” DISCOUNT
Output “Discount Amount” DISCOUNT_AMT
Output “Tuition Due” TUITION DUE
Output “Average Discount” AVG_DISCOUNT
Output “*********************”
End If
If Status= “No Discount Due”
THEN
Output “***********************”
Output “Student First Name” STUD_FNAME
Output “Student Last Name” STUD_LNAME
Output “Student ID” STUD_ID
Output “Grade Level” GRADE LEVEL
Output “Tuition” TUITION
Output “Payment Plan” PMT_PLAN
Output “Status” STATUS
Output “***********************”
Output “Created by Uricella Lalgie”
Output “2024/02/16”
END.

You might also like