Question: Java lan Ex. No: 2 Decision Making Statements Mr. Tom is volunteering a running race competition which has two runners. Write a java program to
Java lan
Ex. No: 2 Decision Making Statements Mr. Tom is volunteering a running race competition which has two runners. Write a java program to input the name of each runner and his/her running time. It should then output a report that lists the first name, last name of the runners followed by the average time for the two runners, the difference in time between them and the winning time. Sample Output: Enter the name and time for runner 1: Alice Bin 505.2 Enter the name and time for runner 2: Bob Bin 501.58 Race Report Runner 1:Alice Bin 0:8:25.19 Runner 2:Bob Bin 0:8:21.57 Average time: 0:8:23.38 Difference:0:0:38 Winning time: 0:8:21
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
