Q:

Draw flowchart, pseudo code and scratch algorithm to compare between 3 numbers and print the largest number

0

Draw flowchart, pseudo code and scratch algorithm to compare between 3 numbers and print the largest number

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

psuedo code (written algorithm ):

start

1) input x,y,z

2) if x>y then go to step 3, else go to step 5

3) if x>z then print "the largest number is "+x and go to end, otherwise then go to step 4

4) print "the largest number is "+z and go to end

5) if y>z then go to step 4, otherwise then print "the largest number is "+y

end

 

 

Scratch algorithm:

 

 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now