Question: For this assignment, you will write a java program to calculate a student's final course grade based on the student's homework, quiz, and final exam
For this assignment, you will write a java program to calculate a student's final course grade based on the student's homework, quiz, and final exam scores.
The first input to the program will be the name of the course as a string followed by the average amount of time the student spent on the course per week in minutes as an int Then, the program will then read integers representing the student's homework scores, decimals representing the student's quiz scores, and finally, a decimal representing the student's final exam score.
The program should then output the course name and the average time spent for the course in a week in hours and minutes. This should be followed by the average homework grade, the average quiz grade, and the final exam grade as doubles and an overall grade as an int
The overall grade should be computed as a weighted average. The weights are as follows:
Average homework grade
Average quiz grade
Final exam grade
The overall grade should be rounded to the nearest integer NOT just truncated to the integer below
When you write the code to produce your program's final output, take extra care to ensure all the labels used are exactly as shown in the sample run, including the colon after each label. The program which grades your solution will look for the values after these labels, so if they don't match exactly your solution may not be graded correctly.
Sample Run:
Please enter the course name.
AP Computer Science A
Please enter the average time spent in a week for this course in minutes.
Please enter the homework grades for this course.
Please enter the quiz grades for this course.
Please enter the final exam grade for this course.
Course name: AP Computer Science A
Weekly time spent: h
Average homework grade:
Average quiz grade:
Final exam grade:
Overall grade:
Milestones
As you work on this assignment, you can use the milestones below to inform your development process:
Milestone : Create code that prompts the user for input, taking a String for the course name and an int for the weekly time spent on the course. Write code that displays this course name and the number of hours and minutes from the total number of minutes.
Milestone : Write code for four int inputs homework followed by a pair of doubles quizzes and a single double final exam All of these should be stored in appropriate variables.
Milestone : Calculate and display as doubles the average of the homework grades, the average of the two quiz grades and the single final exam grade. Hint: store the averages calculated as variables so you dont need to calculate them again later.
Milestone : Calculate and display the weighted average of the three different average figures.
NOTE: You MUST use the class name "Assignment for this assignment.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
