Question: Improve code for it to not interfere with the other sections of code before it. (it multiplies values above when run). cout < <

Improve code for it to not interfere with the other sections of code before it. (it multiplies values above when run).

cout << " " << "Program run count: " << runs << " ";

cout << " " << "Run the program again? [y/n] ";

cin >> accept; if ((accept == "y") || (accept == "Y"))

{

runs+= 1;

}

system ("CLS");

inFileQtr2Grade.close();

}

while ((accept == "y") || (accept == "Y"));

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!