Flowchart Assignment

You might also like

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

START

Input N1,N2,N3

FALSE TRUE
IS N1 > N2?

FALSE
FALSE
IS N2>N3? IS N1 >N3
MAX N3
MAXN3
TRUE
TRUE

MAXN2 Print “The Print “The


MAXN1
largest largest
number is”, number is”,
MAX MAX

Print “The Print “The


largest number largest number
is”, MAX is”, MAX

STOP
START

INPUT NAME,OVERTIME,ABSENT Print


“Bonus for
”,NAME ”is
$ ”,
TRUE PAYMENT
If (overtime -2/3)*ABSENT>40)
PAYMENT  50

FALSE
Print “Bonus
TRUE for ”,NAME ”is
If (overtime -2/3)*ABSENT>30) PAYMENT  40 $ ”, PAYMENT

FALSE
Print “Bonus
for ”,NAME ”is
TRUE
$ ”, PAYMENT
If (overtime -2/3)*ABSENT>20) PAYMENT  30

FALSE Print “Bonus


for ”,NAME ”is
TRUE $ ”, PAYMENT
PAYMENT  20
If (overtime -2/3)*ABSENT>10)

FALSE Print “Bonus


for ”,NAME ”is
TRUE
$ ”, PAYMENT
PAYMENT  10
ELSE

STOP

You might also like