Question: ** Please include pseduo code as a comment in your source file** Write a C++ program that determines grades at the end of the semester.

** Please include pseduo code as a comment in your source file**

Write a C++ program that determines grades at the end of the semester. There is a menu function that lets the user enter/update students grade 1, 2, 3, 4 by ID. For each student, identified by an integer number(ID) between 1 and 10, four exam grades must be kept, and two final grade averages must be computed. The first grade average is simply the average of all four grades. The second grade average is computed by weighting the four grades as follows: The first grade gets a weight of 0.3, the second grade gets a weight of 0.2, the third grade gets a weight of 0.2, and the fourth grade gets a weight of 0.3. That is, the final grade is computed as follows:

0.3 * grade1 + 0.2 * grade2 + 0.2 * grade3 + 0.3 * grade4

Using this information, construct a 10-by-7 two-dimensional array, in which the first column is used for the student number(ID), the next four columns for the grades, and the last two columns for the computed final grades. The programs output should be a display of the data in the completed array(in ID order). Then, one more sorting function is required. The program prompts comment to let the user choose. And the user has options to view the completed array for "second grade average" value increasing order or decreasing order. Please point out the type of sorting algorithm in the comment.

For testing purposes, the following data are examples:

Student #

Grade 1

Grade 2

Grade 3

Grade 4

1

94

100

100

0

2

67

0

83

92

3

89

78

73

94

4

90

89

84

86

5

100

94

100

100

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!