Problem

In this exercise, you modify the program from Lab7-2. a. If necessary, create a new...

In this exercise, you modify the program from Lab7-2.

a. If necessary, create a new project named ModifyThis23 Project and save it in the Cpp7\Chap07 folder. Enter (or copy) the Lab7-2.cpp instructions into a new source file namedModifyThis23.cpp. Change Lab7-2.cpp in the first comment to ModifyThis23.cpp.

b. If Professor Chang enters a score that is greater than 100 points, the program should ask him whether the score is correct. The program should not add a score that is more than 100 points to the accumulator without the professor’s permission. Modify the program appropriately.

c. Save and then run the program. Enter 35, 45, and 50 as the first three scores, and then enter 105. When you are asked whether the 105 score is correct, respond that it is not correct. Now enter 100, 90, and –1. The program should display 320 as the total points earned and A as the grade.

d. Run the program again. Enter 27, 15, and 30 as the first three scores, and then enter 105. When you are asked whether the 105 score is correct, respond that it is correct. Now enter 70 and –1. The program should display 247 as the total points earned and C as the grade.

Reference : program from lab 7-2

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search