Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

<p>&#160;</p> <p><strong>Study the Following program:</strong></p> <p>#include <

ID: 3630786 • Letter: #

Question

<p>&#160;</p>
<p><strong>Study the Following program:</strong></p>
<p>#include <br />#include <br />using namespace std;<br />//Program name: TaskTwo<br />int main(void)<br />{<br />int I=5;<br />while ((I &lt; 10) &amp;&amp; (I &gt; -10))<br />{<br />if (I == -3)<br />{<br />cout&lt;&lt;"P "; I = I + 8;<br />}<br />if (I == -2)<br />{<br />cout&lt;&lt;'?'; I = I + 7;<br />}<br />if (I == -1)<br />{<br />cout&lt;&lt;'X'; I = I - 3;<br />}<br />if (I == 0)<br />{<br />cout&lt;&lt;'O'; I = I + 2;<br />}<br />if (I == 1)<br />{<br />cout&lt;&lt;'d'; I = I * 2;<br />}<br />if (I == 2)<br />{<br />cout&lt;&lt;'O'; I = I - 5;<br />}<br />if (I == 3)<br />{<br />cout&lt;&lt;'!'; I = I / 3;<br />}<br />if (I == 4)<br />{<br />cout&lt;&lt;'*'; I++;<br />}<br />if (I == 5)<br />{<br />cout&lt;&lt;'L'; I = I % 5;<br />}<br />if (I == 6)<br />{<br />cout&lt;&lt;'T'; I--;<br />}<br />} // while I<br />cin.get();<br />return 0;<br />}<br /><br />Problem : Analyze the Modify the program TaskTwo to correct the error observed . The program should give one line of output: LOOP. After testing your program for correctness, print and turn in the modified program.<br /><br /></p>

Explanation / Answer

Cant understand anything. Please repost it

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote