Question: Q.04 (3 points) The following statement should determine if x is not greater than 20. What is wrong with it? if (x 20) a. b.

Q.04 (3 points) The following statement should determine if x is not greater than 20. What is wrong with it? if (x 20) a. b. The following state nt should determine if count is within the range of O What is wrong with u? if (count 0l count100) c. The following statement should determine if count is outside the range of 0 through 100. What is wrong with it? if (count 100) Q. 05 (3 points) Write a do-while loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The user should be asked if he or she wishes to perform the operation again. If so, the loop should repeat; otherwise it should terminate. Q. 06 (2 points) Convert the following while loop to a do-while loop: int x- I; while (x>0) cout x; Q. 07 (2 points) Convert the following while loop to a for loop: int count-0: while (count
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
