(Problem 9) Choose the correct answer. Which of the following is the output of G(45, 32, 77, 20, 33, 24) based on the given pseudocode? 1: procedure G(a1, a2, a3, a4, a5, a6: integers) 2: s := 0 3:...


plz send correct answer asap


(Problem 9) Choose the correct answer.<br>Which of the following is the output of G(45, 32, 77, 20, 33, 24) based on the given pseudocode?<br>1: procedure G(a1, a2, a3, a4, a5, a6: integers)<br>2:<br>s := 0<br>3:<br>j:= 1<br>4 :<br>while j < 6 do<br>5 :<br>s := s - j+ a;<br>6 :<br>j:= j+ 2<br>7 :<br>end while<br>8 :<br>return s<br>9 :<br>end procedure<br>O (A)<br>155<br>O (B)<br>152<br>O (C)<br>149<br>O (D)<br>146<br>O (E)<br>None of the above is correct.<br>.. ..<br>

Extracted text: (Problem 9) Choose the correct answer. Which of the following is the output of G(45, 32, 77, 20, 33, 24) based on the given pseudocode? 1: procedure G(a1, a2, a3, a4, a5, a6: integers) 2: s := 0 3: j:= 1 4 : while j < 6="" do="" 5="" :="" s="" :="s" -="" j+="" a;="" 6="" :="" j:="j+" 2="" 7="" :="" end="" while="" 8="" :="" return="" s="" 9="" :="" end="" procedure="" o="" (a)="" 155="" o="" (b)="" 152="" o="" (c)="" 149="" o="" (d)="" 146="" o="" (e)="" none="" of="" the="" above="" is="" correct.="" ..="">

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here