FlowchartDiagram
Start
is profit < 1
?
is profit
between 1
and 999?
is profit
between
1000 and
9999 ?
is profit
between
10000 and
99999?
print your
commission is
15%
End
print invalid
sum, less than
1
print your
commision is
5%
print your
commission is
10%
is profit >
99999?
print invalid
sum, more than
99999
ask user to
input profit
value
no
no
no
yes
yes
yes
yes
yes
no