Question: Create a Java program with three methods/functions, The first one takes in n which is the size of an array then creates and populate the

Create a Java program with three methods/functions, The first one takes in n which is the size of an array then creates and populate the array with student names, the second method takes in n which is the size of an array then creates and populate n by 3 array with student marks(The three marks are for test 1 - 3) and finally a method that takes in the two arrays, calculates the final mark of all test and print out the results as indicated below: The first method should return and array of names and the second should return an array all test marks(i.e. 2d array with 3 columns). The third method in addition should also return an array for all the final marks

Name Test 01 Test 02 Test 03 Final

-------- --------- --------- --------- ---------

Gerry 55 55 55 55

Sample Test 1:

Enter the total number of students: 3 Enter name: koko Enter name: jojo Enter name: momo Enter mark for Test 1: 78 Enter mark for Test 2: 65 Enter mark for Test 3: 70 Enter mark for Test 1: 55 Enter mark for Test 2: 56 Enter mark for Test 3: 89 Enter mark for Test 1: 45 Enter mark for Test 2: 25 Enter mark for Test 3: 38 Name Test01 Test02 Test03 Final ------ ------ ------ ------ ----- koko 78 65 70 71 jojo 55 56 89 67 momo 45 25 38 36

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!