Professional Documents
Culture Documents
INSTRUCTION:
Please:
Output: minutes
Input: days, hours and minutes
Formula: minutes = 24 hours * 60 minutes
1. Start
2. Set 1 days
3. Set 24 hours
4. Set 60 minutes
5. Convert days, hours and minutes to minutes using the formula:
minutes = 24 hours x 60 minutes
6. Display the times in minutes
7. End
START
Set 1 day
Set 24 hours
Set 60 minutes
Display the
times in
minutes
End
no4
Output: Celsius
Input: Fahrenheit
Formula: Celsius = (Fahrenheit - 32) * 5/9
1. Start
2. Set Fahrenheit
3. Convert Fahrenheit to Celsius using the formula:
Celsius = (Fahrenheit - 32) * 5/9
4. Display the temperature in Celsius
5. End
START
Set Fahrenheit
Display the
temperature
in Celsius
End
Page 38, no2
START
Total = 0
Count = 0
Count = count + 1
False True
Count < 5
Print total
End
Page 42, no5
i. Pseudo code
1. Start
2. Set normal rate = 0.60
3. Set KWH above 1000
4. Set rate 0.45 for KWH above 1000
5. Calculate total electric bill using the formula:
under 1000 KWH = KWH * 0.60
above 1000 KWH = KWH * 0.45
6. Display the total electric bill in RM
7. End
b. 1754 KWH
above 1000 KWH
1754 KWH * 0.45 = RM789.30
c. 10000 KWH
above 1000 KWH
10000 KWH * 0.45 = RM4500.00