Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a grading program for an instructor whose course has the following policie

ID: 3642356 • Letter: W

Question

Write a grading program for an instructor whose course has the following policies:

* Two quizzes, each graded on the basis of 10 points, are given.
* One midterm exam and one final exam, each graded on the basis of 100 points,
are given.
* The final exam counts for 50 percent of the grade, the midterm counts for 25 percent, and the two quizzes together count for a total of 25 percent. (Do not forget to normalize the quiz scores. They should be converted to percentages before they are averaged in.)

Any grade of 90 percent or more is an A, any grade between 80 and 89 percent is a B, any grade between 70 and 79 percent is a C, any grade between 60 and 69 percent is a D, and any grade below 60 perceetn is an F.

The program should read in the student's scores and display the student's record, which consists of two quiz scores, two exam scores, the student's total score for the entire course, and the final letter grade. The total score is a number in the range 0-100, which represents the weighted average of the student's work.




Explanation / Answer

import java.util.Scanner;

public class CourseGrade {

       public static void main(String[] args) {

              Scanner in = new Scanner(System.in);

              System.out.print("Enter the score for quiz 1: ");

              double quiz1 = in.nextDouble();

              System.out.print("Enter the score for quiz 2: ");

              double quiz2 = in.nextDouble();

              System.out.print("Enter the score for the midterm: ");

              double midterm = in.nextDouble();

              System.out.print("Enter the score for the final: ");

              double finalExam = in.nextDouble();

              double score = (quiz1 + quiz2) * 1.25 + (midterm * .25) + (finalExam * .5);

              System.out.println("Quiz 1: " + (quiz1 * 10) + "%");

              System.out.println("Quiz 2: " + (quiz2 * 10) + "%");

              System.out.println("Midterm: " + midterm + "%");

              System.out.println("Final: " + finalExam + "%");

              System.out.println("Total score for course: " + score + "%");

              System.out.print("Final letter grade: ");

              if(score >= 90) {

                     System.out.println("A");

              }

              else if(score >= 80) {

                     System.out.println("B");

              }

              else if(score >= 70) {

                     System.out.println("C");

              }

              else if(score >= 60) {

                     System.out.println("D");

              }

              else {

                     System.out.println("F");

              }

       }

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote