167k views
5 votes
Create a program that asks the user what grade they got in both quarters, and what they want to get for a semester grade, and then prints out what they need on their final exam in order to get that grade.

User Jason Shah
by
8.4k points

1 Answer

5 votes

Final answer:

To determine the final exam score a student needs for their desired semester grade, the quarter and final exam weights are used to set up an equation which is then solved for the final exam score.

Step-by-step explanation:

To calculate what a student needs on their final exam to achieve a desired semester grade, we need to consider the weights of their quarter grades and the final exam. Usually, the final exam has a different weighting compared to the quarter grades. For instance, if each quarter grade accounts for 40% of the semester grade and the final exam accounts for 20%, and a student scored 80% in the first quarter and 90% in the second quarter and wants an overall grade of 85%, we can set up an equation to solve for the final exam score (E).


0.40(80) + 0.40(90) + 0.20(E) = 85

Now, let's calculate:


32 + 36 + 0.20(E) = 85

This simplifies to:


0.20(E) = 85 - 68

0.20(E) = 17

Finally, we find the exam grade needed:


E = 17 / 0.20

E = 85

Therefore, the student would need to score 85% on their final exam to achieve a semester grade of 85%.

Make sure that you fully understand all of the concepts presented and study for this quiz as though it were going to be proctored in a classroom, or you will likely find yourself running out of time. Keep track of the time, and be sure to look over your full quiz results after you have submitted it for a grade.

User Jams
by
7.9k points