Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Homepage

for Staf

Enter 1 = Salary
Enter 2 = Service
Enter 3 = Stock
Enter 4 = Report

Evaluate code

code==1? True Salary

False

code==2? True Service

False

code==3? True Stock

False

code==4? True Report

False

default

End
Salary

Set i=0
Set

Read the workhour

workhour<=8

Calculate Calculate
totalpay=8.0*workhou totalpay=(8*8)+
r ((workhour-8)*5)
bonus=0.15*totalpay bonus=0.15*totalpay
totalsalary=bonus+to totalsalary=bonus+to
talpay talpay

Display the totalpay, bonus and


totalsalary

End

Service
Enter A : Machine TypeA
Enter B : Machine TypeB
Enter C : Machine TypeC

Evaluate code

code==A? True print detail Of Product Calculate


totalService1=
service1*num
False

code==B? True print detail Of Product Calculate


totalService2=
service2*num
False

code==C? True print detail Of Product Calculate


totalService3=
service3*num
False

print Add machine?


Invalid Input Yes

No

print
Invalid Input

End

Stock
Enter1 : 1001 RAHSIA WADI
Enter2 : BEAUTY HAZIQAH
Enter 3 : FARID HEALTH
Enter4= IQMAL BIOMAX

Evaluate code

code==1? True Read choice1

False

code==2? True
Read choice1

False

code==3? True
Read choice1

False

code==4? True
Read choice1

False

print Calculate
Invalid Input total=choice1+1000
total=choice2+1000
total=choice3+1000
total=choice4+1000

Display choice1
Display choice2
Display choice3
Display choice4

Report

End

Set payment=0
Set service=0
Set monthly=0
Set sale=0
Read payment
Read service
Read monthly
Read sale

Calculate
Outcome= payment + service +
monthly
Income= sale
Profit= income-outcome
Percentage= (profit/outcome)*100

print Outcome
print Income
print Profit
print Percentage

End

You might also like