Answered step by step
Verified Expert Solution
Link Copied!

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 = exam1Average * exam1AverageWeight +
exam2Average * exam2AverageWeight +
homeworkAverage * homeworkAverageWeight
Once we have that, we can simply 90-partialGrade to get what we need to get an A,80-
partialGrade to get what we need to get a B, etc. Once we have that, then we need to calculate:
result = needToGet/finalExamWeight
Note that if the result is over 100, 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)(30%) You should ask for each item separately and be clear about what you are asking for using
the command line.
b)(10%) Round each final grade up!
c)(20%) If a grade isnt possible, do not produce a result (IE, if you need greater than 100 or less
than 0)
d)(20%) 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)(20%) 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial And Temporal Databases 8th International Symposium Sstd 2003 Santorini Island Greece July 2003 Proceedings Lncs 2750

Authors: Thanasis Hadzilacos ,Yannis Manolopoulos ,John F. Roddick ,Yannis Theodoridis

2003rd Edition

3540405356, 978-3540405351

More Books

Students also viewed these Databases questions

Question

How effective were Mary Cunninghams political strategies? Explain.

Answered: 1 week ago

Question

What is an interface? What keyword is used to define one?

Answered: 1 week ago

Question

Apply your own composing style to personalize your messages.

Answered: 1 week ago

Question

Format memos and e-mail properly.

Answered: 1 week ago