Please help!
I don't know what to do for this grades project. Any help would be great!!!
These are the directions:
You are not to modify any code provided. The program is to compute the average of several grades and find the letter grade equivalent. All the grades are in the grades table. The program is to process any number of grades in the table without the user entering anything. The program is to use two loops which are nested.
For each grade:
Find the location of the letter grade in the letter_grades table.
The numeric equivalent is in the grades table.
Total the numeric equivalent values.
After all grades processed:
Compute the grade point average.
Look up the equivalent letter grade using another loop.
For loops will work.
The output should look like this:
Average: 0.7140000000000001
Grade: C-
public class Project2 { public static void main(String[] args) { String[] letter_grades = new String[12]; double[] grades = new double[12]; letter_grades[0] = "A"; letter_grades[1] = "A-"; letter_grades[2] = "B+"; letter_grades[3] = "B"; letter_grades[4] = "B-"; letter_grades[5] = "C+"; letter_grades[6] = "C"; letter_grades[7] = "C-"; letter_grades[8] = "D+"; letter_grades[9] = "D"; letter_grades[10] = "D-"; letter_grades[11] = "F"; grades[0] = .93; grades[1] = .90; grades[2] = .87; grades[3] = .83; grades[4] = .80; grades[5] = .77; grades[6] = .73; grades[7] = .70; grades[8] = .67; grades[9] = .63; grades[10] = .60; grades[11] = .0; String[] grades_entered = new String[10]; grades_entered[0] = "B"; grades_entered[1] = "C+"; grades_entered[2] = "D-"; grades_entered[3] = "C+"; grades_entered[4] = "D-"; //Your code goes here } }