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
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