The procedure find_largest() takes a list of numbers and prints the largest. Wor
ID: 3636132 • Letter: T
Question
The procedure find_largest() takes a list of numbers and prints the largest. Work through the call to find_largest(), writing down the values of largest and next until the procedure ends: procedure find_largest (List) assign largest the value of the first number in List while (there is another number in List) do (assign next the value of next number in List if (next > largest) then assign largest the value of next) print the value of largest example_list is: 7 2 3 3 9 1 apply procedure find_largest to example_list largest_nextExplanation / Answer
largest next
7 2
7 3
7 3
7 9
9 1
largest is 9
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.