Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions