You are on page 1of 2

4S2-1 Shari Dominguez

IPO Chart:

Input Processing Output


Minutes: Integer Condition 1: Minutes<10 Print the number of Minutes and
Charge := Minutes*0.15 Charge
else
Condition 2: Minutes>=10 AND Minutes <=15
Charge := Minutes*0.15*0.95
else
Condition 3: Minutes>=20 AND Minutes <=30
Charge := Minutes*0.15*0.90
else
Condition 4: Minutes>30
Charge := Minutes*0.15*0.70

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

Print the number of Minutes and Charge


Stop

Calculate Charge := Minutes*0.15*0.70


Stop

Print the number of Minutes and Charge

Stop

You might also like