Professional Documents
Culture Documents
IPO Chart:
Pseudo Code:
Start
Input the number, Minutes
If Condition 1: Minutes<10
Multiply Minutes by 0.15
Place result in Charge
If Condition 2: Minutes>=10 AND Minutes<=15
Multiply Minutes by 0.15 and 0.95
Place result in Charge
If Condition 3: Minutes>=20 AND Minutes<=30
Multiply Minutes by 0.15 and 0.90
Place result in Charge
If Condition 4: Minutes>30
Multiply Minutes by 0.15 and 0.70
Place result in Charge
Print the number of Minutes and Charge
Stop
4S2-1 Shari Dominguez
Start
Minutes: Integer
Yes No
Minutes<10
No
Yes Minutes>=10
Calculate Charge := Minutes*0.15 AND
Minutes<=15
Print the number of Minutes and Charge Yes Minutes>=20 No
AND
Calculate Charge := Minutes*0.15*0.95 Minutes <=30
Stop
Print the number of Minutes and Charge No
Yes
Minutes>30
Calculate Charge := Minutes*0.15*0.90
Stop
Stop