Start
Please enter your
vehicle type
True
Car ? C
M
False False
True
Motorcycle
R1 R2
Print receipt
End
C
How many
hours you
park?
True
More than 24 Fee is
hours ? RM30
False
More than 2 True HR = hours park Fee = (HR*1)+2
hours ? -2
False
Fee is RM2
Parking fee is
Insert your fee
Your Balance = Your fee –
Parking fee
R1
M
How many
hours you
park?
More than 1 hour ? HR = hour Fee =
park - 1 (HR*0.5)+1
Parking fee is
Insert your fee
Your Balance = Your fee –
Parking fee
R2