Question: Code Needed; Please make corrections as needed :) import java.util.Scanner; public class GradeCalculator { public static void main(String[] args) { Scanner input = new Scanner(System.in);

 Code Needed; Please make corrections as needed :) import java.util.Scanner; public

Code Needed; Please make corrections as needed :)

import java.util.Scanner; public class GradeCalculator { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Grading Scale:"); System.out.println("A 90 - 100"); System.out.println("B 80 - 89:"); System.out.println("C 70 - 79"); System.out.println("D 60 - 69"); System.out.println("F below 60"); String targetLetter; System.out.print("What letter grade do you want to achieve for the course? "); targetLetter = input.next().toUpperCase(); int weight[] = new int[3]; System.out.print("Enter Percentage Weights: "); System.out.print("Quiz Average: "); weight[0] = input.nextInt(); System.out.print("Assignment Average: "); weight[1] = input.nextInt(); System.out.print("Project Average: "); weight[2] = input.nextInt();

int weight_sum = 0; for(int i=0;i

currentScore = Math.floor(currentScore); if(currentScore>=90 && currentScore=80 && currentScore=70 && currentScore=60 && currentScore

At the end of the semester students always want to know what they will need to get on the Final Exam to get a certain grade for the course. What they would like is a program that will calculate what score they will need to get to receive that grade i.e. A, B, C... So, we are going to write a Java program that will get 3 regular scores from the student - Quiz average, Assignment average and Project average. The course grade is calculated off a weighted average where each of these averages are worth 20% of the grade and the Final Exam is worth 40%. Your program must allow the user to enter what grade they are interested in and be given what score they need on the final to get that grade. . If they would have to get a score of over 100 then you must tell them they cannot get that grade. As Well, if they would have to get a negative score then you tell them they don't even have to take the final to get that grade. If Not give them the minimum score that they will need to receive the grade they want. Additionally, they must be able to choose which grade they are interested from a menu where the last choice is to stop. They liked our Java program so much that they determined that they wanted it expanded so they could see what they needed for all their classes. Our mission now is to make it so that the user can enter data for all classes and see what they might need for a score on the Final Exam to get a particular letter grade in each course they are taking. What this means is that we need to make a copy of that Assignment and modify it to meet some additional requirements which some of them are as follows: They must be able to have a way to let the program know that they don't have another class to record They must give the name of the class (CS II) They must give all information for each class before moving on. They must give the output after all information is received and all calculations are done. You must use a 2-dimensional array to store all the scores The menu must be a separate method Calculating what the Final Exam needs to be must be a separate method that receives access to a 1 dimensional array and returns the score. All classes' scores are the same and calculated the same. The order tOt data is enter matters have a method that calculates the score that will be needed on the Final Exam to get a particular grade in the class. we are only allowed to send reference to a 1D array. we cannot send a separate value along with this reference. It also means that we cannot have any global variables either

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!