Flowchart: Ethics Punishment
Flowchart: Ethics Punishment
Flowchart: Ethics Punishment
No
No
ETHICS PUNISHMENT
FLOWCHART
Start
Input
1) Salary
2) Ethics punishment :
a) Come late to work
b) Improper dressing
c) Breaking the rule
d) Low work
performance
3) times
End
A
B
C
D
No
Yes
Yes
No
Yes
Yes
Yes
a) Come late
to work
A
B
Times = 1
Calculate:
NetSalary = 0.9 * salary
Times = 2
Times = 3
Times > 3
Calculate:
NetSalary= 0.7 * salary
Calculate:
NetSalary= 0.5 * salary
Calculate:
NetSalary= 0.3 * salary
Print the new salary
after the cut
End
No
Yes
Yes
No
Yes
Yes
Yes
b) Improper
dressing
B
C
Times = 1
Calculate:
NetSalary = 0.9 * salary
Times = 2
Times = 3
Times > 3
Calculate:
NetSalary = 0.7 * salary
Calculate:
NetSalary = 0.5 * salary
Calculate:
NetSalary = 0.3 * salary
Print the new salary
after cut
End
No
Yes
Yes
No
Yes
Yes
Yes
c) breaking the rule
C
D
Times = 1
Calculate:
NetSalary = 0.9 * salary
Times = 2
Times = 3
Times > 3
Calculate:
NetSalary = 0.7 * salary
Calculate:
NetSalary = 0.5 * salary
Calculate:
NetSalary = 0.3 * salary
Print the new salary
after cut
End
Yes
Yes
No
Yes
Yes
Yes
d) low work
performance
D
Times = 1
Calculate:
NetSalary = 0.9 * salary
Times = 2
Times = 3
Times > 3
Calculate:
NetSalary = 0.7 * salary
Calculate:
NetSalary = 0.5 * salary
Calculate:
NetSalary = 0.3 * salary
Print the new salary
after cut
End