4 An algorithm has been written in pseudocode to input 100 numbers and print out the sum. A REPEAT . UNTIL loop has been used. Count + O Sum + 0 REPEAT INPUT Number Sum + Sum + Number Count + Count +...


4<br>An algorithm has been written in pseudocode to input 100 numbers and print out the sum.<br>A REPEAT<br>. UNTIL loop has been used.<br>Count + O<br>Sum + 0<br>REPEAT<br>INPUT Number<br>Sum + Sum + Number<br>Count + Count + 1<br>UNTIL Count > 100<br>PRINT Sum<br>(a) Find the error in the pseudocode and suggest a correction.<br>Error.<br>Correction<br>(b) Rewrite the correct algorithm using a more suitable loop structure.<br>

Extracted text: 4 An algorithm has been written in pseudocode to input 100 numbers and print out the sum. A REPEAT . UNTIL loop has been used. Count + O Sum + 0 REPEAT INPUT Number Sum + Sum + Number Count + Count + 1 UNTIL Count > 100 PRINT Sum (a) Find the error in the pseudocode and suggest a correction. Error. Correction (b) Rewrite the correct algorithm using a more suitable loop structure.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here