Question: Can someone help me to check whether I write correct pseudocode for largest number of 5 integers... If has mistake please tell me... I 4
I 4 u. an algorithm using the pseudocode reference used in class e. a set of test cases f. the minimum number of operations executed in your algorithm g. the maximum number of operations executed in your algorithm 1. Largest. Write an algorithm that read 5 distinct integers and displays the largest value. Assume the input values are distinct integers. a inputs. I distint integers. b. outputs, largest numbers c. Error Conditions: numbers co. d. SET largest to o SET count To I READ number of minimum IF member co THEN DISPLAY "Enter distinct integers WHILE Count 25 e test cases. input: 3. I 2 output: 5 If number > largest THEN SET largest to number ADD I To count END WHILE DISPLAY largest
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
