Draw a flow chart to find the largest of three numbers
Answers
Answer:
The flowchart in deriving the largest of three (3) numbers, You may follow the steps provided below:
Input for A,B,C
3,2,1
2,1,3
1,2,3
1,3,2
2,3,1
2,2,3
# Draw the start symbol then a flow line connecting to item #2 # Draw the init box for the syntax: set variable_A=0, variable_B=0, variable_C=0 then a flow line connecting to item #3 # Draw the input box and write variable_A and a flow line connecting to item #4 # Draw the decision box for 'Is variable_A not numeric?'. If yes, then a flow line connecting to item #3 else a flow line connecting to item #5 # Draw the input box and write variable_B and a flow line connecting to item #6 # Draw the decision box for 'Is variable_B not numeric?'. If yes, then a flow line connecting to item #5 else a flow line connecting to item #7 # Draw the input box and write variable_C and a flow line connecting to item #8 # Draw the decision box for 'Is variable_C not numeric?'. If yes, then a flow line connecting to item #7 else a flow line connecting to item #9 # Draw the decision box for 'Is variable_A>variable_B?'. if yes, then a flow line connecting to item #10 else a flow line connecting to item #12 # Draw the decision box for 'Is variable_B>variable_C?'. if yes, then draw the output box for the syntax: variable_A, variable_B, variable_C and a flow line connecting to item #14 else a flow line connecting to item #11 # Draw the decision box for 'If variable_A>variable_C?. if yes, then draw the output box for the syntax: variable_A, variable_C, variable_B and a flow line connecting to item #14 else, draw the process box for the syntax: variable_C, variable_A, variable_B and a flow line connecting to item #14 # Draw the decision box for 'Is variable_A>variable_C?'. if yes, then draw the output box for the syntax: variable_B, variable_A, variable_C and a flow line connecting to item #14 else a flow line connecting to item #13 # Draw the decision box for 'If variable_B>variable_C?. if yes, then draw the output box for the syntax: variable_B, variable_C, variable_A and a flow line connecting to item #14 else, draw the process box for the syntax: variable_C, variable_B, variable_A and a flow line connecting to item #14 # Draw the decision box for 'Are there more numbers to compare?'. If yes, a flow line connecting to item #2 else a flow line connecting to item #15 # Draw the end symbol.