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

Write a grading program for your instructor whose course has the following polic

ID: 3655208 • Letter: W

Question

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

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 is an F.

The program should read the student

Explanation / Answer

import java.util.*; //For the scanner import java.io.*; //For the io classes class grade{ //java is case sensitive class not Class public static void main(String[] args){ double quiz1, quiz2, midterm, finalMark, average; //final is a key word. Do not use it as an identifier Scanner grades = new Scanner(System.in); //You need to use the FileReader class to read from the file while(grades.hasNext()) { quiz1 = grades.nextDouble(); quiz2 = grades.nextDouble(); midterm = grades.nextDouble(); finalMark = grades.nextDouble(); if(quiz1 > 10 ) System.out.println("ERROR quiz 1"); if(quiz2 > 10 ) System.out.println("ERROR quiz 2"); if(midterm > 100 ) System.out.println("ERROR midterm"); if(finalMark > 100) System.out.println("ERROR final"); average = ( (midterm / 100) * .25 ) + ( ( quiz1/10 ) * .125 ) + ( ( quiz2/10 ) * .125 ) + ( ( finalMark/100 ) * .50); System.out.println(" Quiz 1 score = " + quiz1 ); } }

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