You are on page 1of 1

Non-module Algorithm

Read(*student,*type,*add,*plus)
1.Enter student
2.Enter type
3.Enter add
4.Enter plus
5.total=0
6.number=1
7.Exit

Calc(student,type,add,plus,amount,*total)
1.amount=60
2.amount=100
3.amount=150
4.amount=150+(plus*20)
5.total=amount+total
6.Exit

Print(total)
1.Price for the UPSR for 6 subject=RM60
2. Price for PT3 for 5 subject=RM100
3. Price for SPM for 5 subject=RM150
4. Additional subject for SPM=RM20.00 each subject
5. "Your total tuition fee is " +total

You might also like