Question & Answer: SUMMER 2017 Page 5 BONUS: Declare a 2D array that will store the class which should tell you which is the row and which is the column. (5 points) Prom…..

-SUMMER 2017 Page 5 BONUS: Declare a 2D array that will store the class which should tell you which is the row and which is the column. (5 points) Prompt: where the first 9 will represent assignment 1 or assignment 2, etc., and, the second eproper looping structure(s) to populate the array. Think of assignments as belonging to each will represent Java class 1 or Java class 2 Enter the grade for assignment 9 of Java class 9:
Need answered within 30 minutes!!

SUMMER 2017 Page 5 BONUS: Declare a 2D array that will store the class which should tell you which is the row and which is the column. (5 points) Prompt: where the first 9 will represent assignment 1 or assignment 2, etc., and, the second eproper looping structure(s) to populate the array. Think of assignments as belonging to each will represent Java class 1 or Java class 2 Enter the grade for assignment 9 of Java class 9:

Expert Answer

 

// Grades.java

import java.util.Scanner;

public class Grades {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
//Enter name and grade and save in an array
Scanner input = new Scanner(System.in);
String [][] grade = new String [2][9];

for (int i = 0; i < 2; i++)
{
for (int j = 0; j < 9; j++)
{
System.out.print(“Enter the grade for assignment ” + (j+1) + ” of java class ” + (i+1) + “: “);
grade[i][j] = input.nextLine();
}
}

for (int i = 0; i < 2; i++)
{
System.out.print(“Java class ” + (i+1) + ” grades: “);
for (int j = 0; j < 9; j++)
{
System.out.print(grade[i][j] +” “);
}

System.out.println();
}

}
}

Question & Answer: SUMMER 2017 Page 5 BONUS: Declare a 2D array that will store the class which should tell you which is the row and which is the column. (5 points) Prom..... 1

Still stressed from student homework?
Get quality assistance from academic writers!