Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

More Books

Students also viewed these Databases questions

Question

4. What action should Cherita Howard take and why?

Answered: 1 week ago