I haven't tested this but try this, threw it together in 5mins
Code:
import java.util.*;
public class StudentGrades {
public static void main (String[] args) {
Scanner console = new Scanner (System.in);
//Student Data Variables
String studentId = "";
String studentForename = "";
String studentSurname = "";
double assignmentScore = 0;
double quizScore = 0;
double midtermExam = 0;
double finalExam = 0;
double totalScore = 0;
String totalGrade = "";
//Start Scanner Data input
System.out.println("Please enter student's ID Number.");
studentId = console.nextLine();
System.out.println("Please enter student's First Name.");
studentForename = console.nextLine();
System.out.println("Please enter student's Last Name.");
studentSurname = console.nextLine();
System.out.println("Please enter student's score for Assignments");
assignmentScore = console.nextDouble ();
System.out.println("Please enter student's score for Quizes");
quizScore = console.nextDouble();
System.out.println("Please enter student's score for Midterm Exam");
finalExam = console.nextDouble();
System.out.println("Please enter student's score for Final Exam");
finalExam = console.nextDouble();
//Do calculations (Assuming that all scores are out of 100)
totalScore += ((assignmentScore + quizScore + midtermExam + finalExam) / 4);
totalGrade += "Grade: " + (
totalScore > 89? "A" :
totalScore > 79? "B" :
totalScore > 69? "C" :
totalScore > 59? "D" : "E"
);
//Results
System.out.println("\n Results:-);
System.out.println("Last Name: " + studentSurname + " - First Name: " + studentForename);
System.out.println("Student ID: " + studentId);
System.out.println("Homework Score: What homework score?");
System.out.println("Quizzes Score: " + quizScore);
System.out.println("Midterm Exam Score: " + midtermExam);
System.out.println("Final Exam Score: " + finalExam);
System.out.println("Total Score: " + totalScore + " - " + finalExam);
}
}