Question: IN JAVA Task 5 Initialize a String array named names with the following values: Elena, Thomas, Hamilton, Suzie, Phil, Matt, Alex.nnEmora,, John, James, Jane, Emily,

IN JAVA Task 5 Initialize a String array named names with theIN JAVA

Task 5 Initialize a String array named names with the following values: "Elena", "Thomas", "Hamilton", "Suzie", "Phil", "Matt", "Alex."nn"Emora,", "John", "James", "Jane", "Emily", "Daniel", "Nedaz"n"Aasors", "Kate" Initialize another integer array named times, with the following values: 341,273,278,329,445,402,388,275,243,334,412,393,299,343,317, 265 The names correspond to runners and. The times are the total time taken in minutes to run a race. You need to do: (i) Find the fastest runner. Print the name and his/her time (in minutes). (ii) Find the second fastest runner. (iii) Find the average time for the runners. (iv) Display all runners whose running time was better than average Sample run: Fastest runner is John with 243 minutes Second fastest runner: Kate with 265 minutes Average time: 333.5625 All runners with better running time than average: Thomas Hamilton Suzie Emma John Daniel Aaron Kate

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!