Problem

In this exercise, you modify the program from Computer Exercise 28. If necessary, create...

In this exercise, you modify the program from Computer Exercise 28. If necessary, create a new project named Advanced29 Project and save it in the Cpp7\Chap11 folder. Also create a new source file named Advanced29.cpp. Copy the C++ instructions from the Advanced28.cpp file into the Advanced29.cpp file. Change the filename in the first comment to Advanced29.cpp. Modify the program so that it prompts the user to enter a minimum score and a maximum score. Swap the scores if the minimum score is greater than the maximum score. The program should display the number of students who earned a score within that range. Use a sentinel value to end the program. Save and then run the program. Use the program to answer the following questions.

How many students earned a score from 70 through 79?

How many students earned a score from 65 through 85?

How many students earned a score from 0 through 50?

REFERENCE : EXERCISE 28

Follow the instructions for starting C++ and viewing the Advanced28.cpp file, which is contained in either the Cpp7\Chap11\Advanced28 Project folder or the Cpp7\Chap11 folder. (Depending on your C++ development tool, you may need to open the project/solution file first.) If necessary, delete the two forward slashes that appear before the system("pause"); statement, and then save the program. Enter the code that prompts the user to enter a score from 0 through 100. The program should display the number of students earning that score. Use a sentinel value to end the program. Save and then run the program. Use the program to answer the following questions.

How many students earned a score of 72?

How many students earned a score of 88?

How many students earned a score of 20?

How many students earned a score of 99?

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
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT