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

A Class assessment is based on Three Examinations, Homework and a Final Project.

ID: 3751120 • Letter: A

Question

A Class assessment is based on Three Examinations, Homework and a Final Project. The weight for each category is as follows: Exam 1, Exam 2 and Exam 3 Weight 45% of the overall grade, Homework Weight 25% and Final Project Weight 30%. Write a Java Application that prompt the user to enter the three examinations (exam1, exam 2, and exam 3), homework and final project grades then calculate and display the overall grade along with a message as follow: The message is “Excellent” if the overall grade is more than 90, “Good” if the overall grade is between 80 and 90, “Average” is the overall grade is between 70 and 80, and “Poor” if the overall grade is less than 70.

Explanation / Answer

import java.util.Scanner;

public class Problemb2 {

public static void main(String[] arg)

{

Float fistExam;

Float secondExam;

Float thirldExam;

Float homeWork;

Float project;

Float overAll;

Scanner sc = new Scanner(System.in);

System.out.println("Enter first exam grades");

fistExam=sc.nextFloat();

System.out.println("Enter second exam grades");

secondExam=sc.nextFloat();

System.out.println("Enter Thirld exam grades");

thirldExam=sc.nextFloat();

System.out.println("Enter homeWork grades");

homeWork=sc.nextFloat();

System.out.println("Enter project grades");

project=sc.nextFloat();

overAll = ((float) ((fistExam + secondExam + thirldExam)/3.0)*45/100) + homeWork*25/100 + project*30/100;

System.out.println("Over All Grade "+overAll);

if(overAll>90)

System.out.println("Excellent");

else if(overAll>80)

System.out.println("Good");

else if(overAll>=70)

System.out.println("Average");

else

System.out.println("Poor");

}

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