You are on page 1of 3

PROBLEM DEFINITION

Since the pandemic in 2020, parents and guardians have been having trouble honoring the
school fee commitments in a timely manner and this has been causing some problems for the
financial aspect in the administration. The solution to this problem is to create an app. This app
was requested by the Board of Directors. This app would let parents and guardians know their
school fee. This app can be used or accessed on the school’s website.
INPUT
The data for this program will be entered using the mouse and keyboard. In this program,
parents will be requested to enter the student’s name, grade, student ID and payment plan.
Parents will be required to enter this data at the beginning of the program.
PROCESSING
The program will read be repeated based on the number of students. The program will
need to accumulate the discount amounts for the groups of students and also count the number of
students who will receive the discounts. The tuition and school level will be determined by using
the grade level. This process will be done while the data is entered. The program will generate
the tuition and school level based on the grade level inputted. The program will use the payment
plan (E-full and Bi-payment) to determine or generate the discount rate. The amount that has to
be will be calculated by subtracting the discount amount from the tuition cost.
OUTPUT
This data will be outputted from a monitor. The data that will be outputted is the school level,
tuition, status, discount, discount amount and tuition due. The data will be outputted as it is being
processed. The output is conditional because it depends on the grade and payment plan. The
output will be formatted using different fonts, colours and images.
INPUT PROCESSING OUTPUT
STUD_ID GENERATE OR DETERMINE TUITION STUD_ID
STUD_FNAME IF GRADE <=9 STUD_FNAME
STUD_LNAM THEN TUITION= 120,000 AND GRADE STUD_LNAME
E LEVEL= LOWER SCHOOL GRADE
PMT_PLAN ELSE IF GRADE <= 11 GRADE_LEVEL
THEN TUITION= 170,000 AND TUITION
GRADE LEVEL= UPPER SCHOOL PMT_PLAN
ELSE TUITION= 200,000 AND STATUS
GRADE LEVEL= SIXTH FORM DISCOUNT
DISCOUNT_AMT
GENERATE OR DETERMINE PAYMENT TUITION_DUE
PLAN AVG_DISCOUNT
COUNT_DISCOUN
IF PMT_PLAN= E-FULL T
THEN DISCOUNT PERCENT= -0.1(10%)
IF PMT_PLAN= BI-PAYMENT
THEN DISCOUNT PERCENT= -0.05(5%)
IF PMT_PLAN= TRI-PAYMENT
THEN DISCOUNT PERCENT= -0.05(5%)

CALCULATIONS
DISCOUNT AMOUNT= TUITION*DISCOUNT
PERCENT (Discount Amount)

TUITION DUE= TUITION + DISCOUNT


AMOUNT (Tuition Due)

DETERMINE STATUS
IF DISCOUNT PERCENT <0
THEN STATUS= DISCOUNT DUE
ELSE STATUS= NO DISCOUNT DUE
OR
IF PMT_PLAN= E-FULL
THEN STATUS= DISCOUNT DUE

IF PMT_PLAN= BI-PAYMENT
THEN STATUS= DISCOUNT DUE

IF PMT_PLAN= TRI-PAYMENT
THEN STATUS= NO DISCOUNT DUE
VARIABLES TABLE
DATA VARIABLE NAME DATA TYPE
STUDENT FIRST NAME STUD_FNAME STING
STUDENT LAST NAME STUD_LNAME STRING
STUDENT ID STUD_ID STRING
GRADE GRADE STRING
GRADE LEVEL GRADE LEVEL STRING
PAYMENT PLAN PMT_PLAN STRING
TUITION TUITION LONG INTEGER
DISCOUNT COUNT COUNT_DISCOUNT LONG INTEGER
DISCOUNT DUE DISCOUNT_DUE REAL
TUITION DUE TUITION_DUE REAL
DISCOUNT AMOUNT DISCOUNT_AMT REAL
STATUS STATUS REAL

TEST DATA
STUDENT ID GRADE LEVEL PAYMENT PLAN
ED114 LOWER SCHOOL E-FULL
SB115 LOWER SCHOOL BI-PAYMENT
GM118 LOWER SCHOOL TRI-PAYMENT
LC119 UPPER SCHOOL E-FULL
LW125 UPPER SCHOOL BI-PAYMENT
DJ124 UPPER SCHOOL TRI-PAYMENT
ML131 SIXTH FORM E-FULL
JW133 SIXTH FORM BI-PAYMENT
CH134 SIXTH FORM BI-PAYMENT
OG135 UPPER SCHOOL E-FULL
SG103 LOWER SCHOOL TRI-PAYMENT

You might also like