Answered step by step
Verified Expert Solution
Question
1 Approved Answer
What do you need to get on your final exam? As an instructor, I am often asked What do I need to get on my
What do you need to get on your final exam?
As an instructor, I am often asked What do I need to get on my final exam to get a X and the
answer is usually very easy to look up based on the syllabus and your given grades.
Write a program that asks the user to enter their two exam scores whole numbers homework
averages floating point number and the relative weights floating point number of each of the
exams, the homework average, and the final exam. It then outputs the grade the student would
need to receive on the final exam to get all possible grades A B C D F
First, we calculate a partial grade using the scores and weights:
partialGrade examAverage examAverageWeight
examAverage examAverageWeight
homeworkAverage homeworkAverageWeight
Once we have that, we can simply partialGrade to get what we need to get an A
partialGrade to get what we need to get a B etc. Once we have that, then we need to calculate:
result needToGetfinalExamWeight
Note that if the result is over its not possible for you to get that grade. Show all other
possibilities even if negative. You DO NOT need a loop to do this assignment and should NOT
use one!
a You should ask for each item separately and be clear about what you are asking for using
the command line.
b Round each final grade up
c If a grade isnt possible, do not produce a result IE if you need greater than or less
than
d You will additionally calculate a likely score on the final exam which is derived from the
average of the two exam scores. You simply use the likely score as the final exam score to calculate
the final score.You will calculate the likely score in the class with a letter grade.
e Your output should use show the results on the command line as follows:
Given your test scores and homework grades, you will need to get a:
X on your exam to get an A
Y on your exam to get a B
Z on your exam to get a C
It is likely, based on past performance that you will get a U on your exam which mean
you will end up with a score of T and a letter grade of B
f Name your program: StudentQuestion.java Please solve it using Java Language and also show display page.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started