
There are 4 array of numbers or scores as below. They are called marks list and represent the scores individual students have got against each examination.
The order of students remain same across all lists and also the number of students (4 in this case).
Marks List 1 : [34, 35, 22, 46] - marks list for examination 1 i.e student 1 got 34, student 2 got 35 and so forth Marks List 2 : [44,40, 13, 29] - marks list for examination 2. Marks List 3 : [35, 35, 43, 28] - marks list for examination 3. Marks List 4 : [24,34, ,31] - marks list for examination 4. - Note the missing number at third place above. Here the 3rd student didn't appear for the exam and therefore no score available.
Write a java program that will return the highest numbers (best scores) as arrays preserving the order of students. The number of arrays would be determined
by the input Input parameter : No. of arrays to return Output : array of array of marks with the best scores Eg: If the input parameters is 2 then the output should be [[44,40,43,46],[35,35,22,31]] If the input parameter is 1 then the output should be [[44,40,43,46]]
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.