Problem

In this exercise, you modify the program from Computer Exercise 31. The modified pro...

In this exercise, you modify the program from Computer Exercise 31. The modified program will allow the user to change the grading scale while the program is running. If necessary, create a new project named Advanced32 Project and save it in the Cpp7\Chap11 folder. Also create a new source file named Advanced32.cpp. Copy the instructions from the Advanced31.cpp file into the Advanced32.cpp file. Change the filename in the first comment. Modify the program so that it allows the user to enter the total number of possible points—in other words, the total number of points a student can earn in the course—when the program is run. Also modify the program so that it uses the grading scale shown in Figure 11-62. For example, when the user enters the number 500 as the total number of possible points, the program should use 450 (which is 90% of 500) as the minimum number of points for an A. When the user enters the number 300 as the total number of possible points, the program should use 270 (which is 90% of 300) as the minimum number of points for an A. Save and then run the program. Test the program using 300 as the total number of possible points and 185 as the number of points earned. The program should display D as the grade. Stop the program. Then test it using 500 and 363 as the total number of possible points and the total points earned, respectively. The program should display C as the grade.

REFERENCE : EXERCISE 31

In this exercise, you create a program that uses two parallel one-dimensional arrays. Ms. Jenkins uses the grade table shown in Figure 11-61 for her Introduction to Programming course. She wants a program that displays the grade after she enters the total points earned. If necessary, create a new project named Advanced31 Project and save it in the Cpp7\Chap11 folder. Also create a new source file named Advanced31.cpp. Store the minimum points in a one-dimensional int array. Store the grades in a onedimensional char array. Use a sentinel value to stop the program. Save and then run the program. Test the program using the following amounts: 455, 210, 400, and 349.

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