You are on page 1of 3

Haziq Aiman bin Abdul Rahim 200984

Exercise 7.2

1. Trace input 3,5,2,6,4

Count Count <5 Number Sum


0 T 3 3
1 T 5 8
2 T 2 10
3 T 6 16
4 T 4 20
5 F - -

B) output;

Sum is 20 and the count is 5

2. Output;

20 10

1 2

20 10

3. PAC chart

Data Process Output


- Slimming Tea Sold - Slimming tea <=500 = - Commission
commission = RM200.00
- Slimming tea >500 =
commission = (500 xRM1.00) +
(slimming tea – 500 )*2
Flowchart

You might also like