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

Pseudocode Algorithm

Step 1: Start
Step 2: Declaration Variables
Fname,Sname,person,Mname as string
Grade,fee,actual_fee,outstanding_fee,interest,paid as real and Counter as integer
Step 3: Initialize counter to 0
Step 4: Repeat step 5 -26 until counter is 0
Step 5: Display “The information is requested by”
Step 6: Read Person
Step 7: Display “Enter your Personal Information: Surname”
Step 8: Read Sname
Step 9: Display “Enter your Personal Information: First name”
Step 10: Read Fname
Step 11: Display “Enter your Personal Information: Middle Name”
Step 12: Read Mname
Step 13: Display “Enter Grade for :” , Fname
Step14: Read grade
Step 15: If Grade=11 then
Display “Fee ATTACHED IS $204,000 “
Else If Grade=10 then
Display “FEE ATTACHED IS $195,000”
Else If Grade=9 then
Display “FEE ATTACHED IS $150,000”
Else If Grade=8 then
Display “FEE ATTACHED IS $130,000”
Else if Grade=7 then
Display “FEE ATTACHED IS $115,000 “
Else Display “Incorrect Grade Entered”
Endif
Step 16: Display “ An interest of 8.5% is incurred on the fee”
Step 17: Display “Enter the fee for the grade:$”
Step 18: Read fee
Step 19: Set interest  fee*0.085
Step 20: Display “The interest incurred is $',interest:6:2”
Step 21: Set actual_fee  fee + interest  /3
Step 22: Display “The actual amount to be paid termly is $”, actual_fee:6:2
Step 23: Display “The amount paid is $”
Step 24: Read paid
Step 25: Set outstanding_fee  fee-paid
Step 24: Display “The outstanding fee $',outstanding_fee:6:2”
Step 25: Display “Enter any number to continue and zero to stop”
Step 26: Read counter
Step 27: Stop

You might also like