I have written the code below the third array is suppose to store the averages of test scores from the first two arrays that were entered, fourth array stores letter grade. My question is do I need to manually write out each value one by one if so how do I do that and if I don't what do I need to do. This is a project and I don't expect the answer but help in the right direction is very much appreciated.
import java.util.*; public class TestArray { public static void main (String[] args) { int[] testOne = new int[4]; int[] testTwo = new int[4]; double[] average = new double[4]; char[] grade = {'A', 'B', 'C', 'F'}; // final letter grade Scanner scan = new Scanner(System.in); // Input scores for both test and all four students. System.out.println("For test 1,"); for ( int i = 0; i < testOne.length; i++) { System.out.print("Enter score" + (i + 1) + ":"); testOne[i] = scan.nextInt(); } System.out.println("For test 2,"); for ( int i = 0; i < testTwo.length; i++) { System.out.print("Enter score" + (i + 1) + ":"); testTwo[i] = scan.nextInt(); } System.out.println(""); System.out.println("Test 1"); for(int i = 0; i < testOne.length; i++) { System.out.println(testOne[i]); } System.out.println(""); System.out.println("Test 2"); for(int i = 0; i < testTwo.length; i++) { System.out.println(testOne[i]); } } }