You are on page 1of 4

ONLINE TASK

Analyze the problem below base on your understanding of Phase 2 : Programming Life


Cycle (PLC).

Scenario 1
Ah Ling book store is selling a gift box base on their volume. The payment will then be a flat
charges of 15 cents on top of the box volume. Calculate the total customer need to pay.
In Process O
p ut
u p
t ut
1. Volume of gift box: T
w Width*length*height ot
id al
t Payment: cu
h 0.15*volume of gift box st
of o
b m
o er
x n
2. e
le e
n d
g to
h p
t ay
of m
b e
o nt
x
3.
h
ei
g
h
t
of
b
o
x
Scenario 2
You are the new IT executive for Mr.DIY Bhd. For the incoming festive season, Mr.DIY Bhd
decides to offer 5% discount on all items. You are given a task to program a simple trial
system to be use by their cashier.  (assume here the number of items bought is only ONE).

In Process O
p u
ut t
p
u
t
Di Price of item*0.05=discount price D
sc Price of item-discount price=total is
o pl
u a
nt y
o n
n u
e m
it b
e e
m r
it
e
m
s

Scenario 3
One local company wanted to build a system similar to the Grab concept. Only that, they
provide the service to deliver package charge base on standard item weight. The flat
charges is RM0.60/kg.

I Process O
n u
p t
u p
t u
t
1 Calculate deliver package charge: T
.i 0.60 per *item weight h
t e
e d
m el
iv
w er
e p
ig a
h c
t k
a
g
e
c
h
ar
g
e

Scenario 4
Pn. Fairose is an organize person. She tries to calculate the average daily expenses spend on
pocket money in one week period for her children. For children who are sent to SK Ampang
Baharu (primary school), she provides RM3 per day for a week. For those who are in
secondary school, they are sent to SMK Ampang Baharu at RM5 per day per week. Help Pn.
Fairose by building this program.

Input Process O
u
t
p
u
t
Calculate the average daily expenses T
1.3.00 per day per week (3.00*7)+(5.00*7)divide number of h
children e
2.5.00 per day per week a
v
e
r
a
g
e
d
a
il
y
e
x
p
e
n
s
e
s

You might also like