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

Java Program Student Name:Chua Sanders Part 3: Programming (34 points) . Create

ID: 3755511 • Letter: J

Question

Java Program Student Name:Chua Sanders Part 3: Programming (34 points) . Create a project name: yourNameExaml Create a program name Grading that will: 1) Prompt user to enter 3 double scores for homework, midterm, and finalExam 2) Compute the grade using this fomula grade (homework.somidterm 20 tinalExam 30) 100 3) Print to console the result of the calculated grade and the associated letter grade. The associated letter grade rule is: A:from 90 to 100 B: from 80 to below 90 C: from 70 to bellow 80 D: from 60 to bellow 70 F: bellow 60 Example output of the testing run: Enter the double score of homework: 95.0 Enter the double score of midterm: 91.5 Enter the double score of finalExam: 87.5 Your grade is: 92.05 and the letter grade is: A .Document requirement: Type the following information at the top of your program code. If not, all points will be taken off. /* Class: CS103 Fall 2018 Exam 01 Author: Your First and Last name * Index number Submitting requirement: Archive your project, make sure the archive file contains your java program Name the archive file as Last Name FirstNameCS103 ExamOl - - Copy and paste the archive file to this directory: KALABSICS1031TranlExam Return this document to the proctor after the exam

Explanation / Answer

import java.util.Scanner;

public class Grading {

public static void main(String[] args) {

Scanner sc=new Scanner(System.in);

double homework,midterm,finalExam,grade;

System.out.println("Enter The double score of the homework:");

homework=sc.nextDouble();

System.out.println("Enter The double score of the midterm:");

midterm=sc.nextDouble();

System.out.println("Enter The double score of the finalExam:");

finalExam=sc.nextDouble();

grade=(homework*50+midterm*20+finalExam*30)/100;

if(grade>=90)

{

System.out.println("Your grade is:"+grade+" and the letter grade is:A");

}

else if(grade>=80)

{

System.out.println("Your grade is:"+grade+" and the letter grade is:B");

}

else if(grade>=70)

{

System.out.println("Your grade is:"+grade+" and the letter grade is:C");

}

else if(grade>=60)

{

System.out.println("Your grade is:"+grade+" and the letter grade is:D");

}

else

{

System.out.println("Your grade is:"+grade+" and the letter grade is: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