Professional Documents
Culture Documents
Aswan has RM100 in his pocket. He bought two item with different prices. Calculate the balance that is left.
Phase
1
To calculate the balance after TWO item are bought within RM100.
2 I:
Price 1, Price 2
P:
1. Amount in hand;
Money = 100
2. Calculate Balance;
Balance = Money - (Price 1 + Price 2)
O:
Display balance;
Balance
3 Algorithm
Phase
1 To calculate the balance after TWO item are bought within RM100.
2 Input(I)
Salary
Process(P)
1)Calculate Bonus;
Salary*20%
Output(o):
Display Bonus;
Bonus
3 Algorithm
Case 3
To calculate the total to be paid by the customer after given 10% discount from the total input price from user.
Phas
e
1 Required payment after 10% discount from user input.
2
Input(I):
(Total Price)
Process(P):
1)Calculate required payment after 10% discount.
Total price* 90%
Output(O):
Display required payment;
Required payment
3 Algorithm