Question: use c++ Refer to the Figure 4 below. cin > input; do & cin input; sum += input; counter++; } while (input != SENTINEL); Figure

use c++
use c++ Refer to the Figure 4 below. cin > input; do

Refer to the Figure 4 below. cin > input; do \& cin input; sum += input; counter++; \} while (input != SENTINEL); Figure 4: C++ Program Segments Given the SENTINEL =123, counter =0 and sum =0. (a) Determine the output based on the Figure 4 if the input for the input is 10 20603011123. Provide the tracing table to show the steps. (10 marks) (b) Do you identify any issue(s) with this program? If yes, explain the issue(s). (5 marks) (c) Based on your answer in 3 (b), rewrite the correct program to get the correct result. (10 marks) 25 marks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!