Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a java program to find the fastest runner and display his or her run time in hours and minutes Time (minutes) Name Elena Thomas
write a java program to find the fastest runner and display his or her run time in hours and minutes
Time (minutes) Name Elena Thomas Hamilton 278 Suzie Phil Matt Alex Emma John ames Jane Emily Daniel Neda Aaron Kate 341 273 329 445 402 388 275 243 334 412 393 299 343 317 265 Find the fastest runner In particular, write a program as follows. Print the list of runners and times as above. Then print the name of the fastest runner and his/her time (in hours and minutes) hown below. The program The names and running times are to be entered into the program as s should have a method that takes as input an array of integers and returns the index corresponding to the person with the lowest time. T he program should apply this method to the array of running times to find the fastest runner Extra Credit (10 points): Print the list of runners and times nicely formatted in columns as displayed above. One option is to use the printf)method. Here is some program code to get started class Marathon [ public static void main (String[] arguments) final int numRunners 16; String] names "Elena", "Thomas", "Hamilton", "Suzie", "Phil", "Matt", "Alex", "Emma", "John", "James", "Jane", "Emily", "Daniel", "Neda", "Aaron", "Kate"]; int [] times 1341, 273, 278, 329, 445, 402, 388, 275, 243, 334, 412, 393, 299,343, 317, 265}; for (inti 0; iStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started