Suppose you are a teacher faced with the problem of computing final grades for
all the students in one of your classes this semester. During the course of the
term, you gave four tests each worth 100 points. In addition, there was a midterm
and a final examination. Like the tests, each of these exams were out of 100
points. In addition to the tests and exams, there was a term paper also out of 100
points. The tests are worth 30% of the final grade. The midterm is worth 20%,
and the final is worth 30%. The remaining 20% of the grade is determined by the
term paper. So, a student's final average is given by the following formula:
final grade = 30% (sum of the four tests) + 20% (midterm grade) + 30% (final
exam grade) + 20% (term paper)
Finally, your have to find the final grades using the following formula.
90<= marks<= 100:::::::::::::::::::::::::::::A
87<= marks<=89::: ::::: :::::: ::::::::::::: ::::B+
80<= marks<=86:::::::::: :::::: ::::::::: ::::::B
77<= marks<=79:::::::: :::::::: :::::::: :::::::C+
70<= marks<=7 6:::::::::::::::::::::::::::::::C
67<= marks<=69:::::::::::::::::::::::::::::: D+
57<= marks<=66:::::::::::::: ::::::::::: ::::: D
0<= marks<=56:::::::::::::::::::::::::::::::::F
Your C++ program should accept the marks and then prints the final grade. Your
program is to repeat till the user enters 999.
A sample output is as follows:
, Input the grade for test #1: 78
Input the grade for test #2: 93
Input the grade for test #3: 84
Input the grade for test #4: 66
Input the grade for the midterm exam: 77
Input the grade for the final exam: 91
Input the grade for the term paper: 83
The final average is: 89.04
The final letter grade is: B+




all the students in one of your classes this semester. During the course of the
term, you gave four tests each worth 100 points. In addition, there was a midterm
and a final examination. Like the tests, each of these exams were out of 100
points. In addition to the tests and exams, there was a term paper also out of 100
points. The tests are worth 30% of the final grade. The midterm is worth 20%,
and the final is worth 30%. The remaining 20% of the grade is determined by the
term paper. So, a student's final average is given by the following formula:
final grade = 30% (sum of the four tests) + 20% (midterm grade) + 30% (final
exam grade) + 20% (term paper)
Finally, your have to find the final grades using the following formula.
90<= marks<= 100:::::::::::::::::::::::::::::A
87<= marks<=89::: ::::: :::::: ::::::::::::: ::::B+
80<= marks<=86:::::::::: :::::: ::::::::: ::::::B
77<= marks<=79:::::::: :::::::: :::::::: :::::::C+
70<= marks<=7 6:::::::::::::::::::::::::::::::C
67<= marks<=69:::::::::::::::::::::::::::::: D+
57<= marks<=66:::::::::::::: ::::::::::: ::::: D
0<= marks<=56:::::::::::::::::::::::::::::::::F
Your C++ program should accept the marks and then prints the final grade. Your
program is to repeat till the user enters 999.
A sample output is as follows:
, Input the grade for test #1: 78
Input the grade for test #2: 93
Input the grade for test #3: 84
Input the grade for test #4: 66
Input the grade for the midterm exam: 77
Input the grade for the final exam: 91
Input the grade for the term paper: 83
The final average is: 89.04
The final letter grade is: B+






good luck.