USE ARRAYS to compute Grade Point Average (GPA) for each of the given number of
ID: 3530263 • Letter: U
Question
USE ARRAYS to compute Grade Point Average (GPA) for each of the given number of students using arrays. GPA must be based on the number of courses taken, earned credits and grades in a given semester. These courses may vary from one student to another. For example, Joe may take 4 classes, each with 3 hours, whereas, Jill may take 5 classes: 3 with 4 hours and 2 with 3 hours. Grade points are assigned according to the following distribution: Percentages Letter grade Grade Points [93, 100] A 4.00 [90, 93) A- 3.67 [87, 90) B+ 3.33 [83, 87) B 3.00 [80, 83) B- 2.67 [77, 80) C+ 2.33 [73, 77) C 2.00 [70, 73) C- 1.67 [67, 70) D+ 1.33 [63, 67) D 1.00 [60, 63) D- 0.67 [0, 60) F 0.00 Requirements: You must create an Eclipse project named StudentGPA. You must implement using Arrays and Class(es). Each class should have proper instance variables and methods; each method must address a single well-defined mini task. You may directly read the letter grades (and not compute in your program) must use arrays this is a simple java program use only simple librariesExplanation / Answer
import javax.swing.JOptionPane; public class GPA { private double gpa = 0.0; private int classNum; private String gradeInput; public GPA() { } public String UserInput(){ gradeInput = JOptionPane.showInputDialog("Enter Grade:"); return gradeInput; } public double inputGrade() { for(classNum = 1; classNumRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.