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

I need using DO WHILE loop for following program. using namespace std; int main(

ID: 3620273 • Letter: I

Question

I need using DO WHILE loop for following program.

using namespace std;
int main( )
{
int x;
int count = 0;
int N;
double sum = 0;
double average;

// prompt the user:
cout << "Enter number of values, N, to be read in <Enter>:" << endl;
cin >> N;
while( count < N)
{
// read each number and compute the sum:
cout << " Enter a grade <Enter>: ";
cin >> x;
sum = sum + x;
count++;
}
if(N == 0)
cout << "You haven't enter 0 number, no average will be computed, bye ";
else{
average = average = sum/N;
cout << "The average of these " << N << " grades is " << average << endl;
}
return 0;
}

Explanation / Answer

using namespace std; int main( ) { int x; int count = 0; int N; double sum = 0; double average; // prompt the user: cout x; sum = sum + x; count++; }while(count