Question: (b) An algorithm is written in pseudocode: numi - input(Enter a number) num2 - input(Enter a number) if numi > num2 then if numi -

 (b) An algorithm is written in pseudocode: numi - input("Enter a

(b) An algorithm is written in pseudocode: numi - input("Enter a number") num2 - input("Enter a number") if numi > num2 then if numi - num2 > 50 then final - numi - num2 else final - num2 endir else final - numi endir output (final) State the output of the algorithm if the following data is input: 12, 30 60, 10 (i) The algorithm needs the inputs validating. Explain the importance of validation of input data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!