Question: Problem 2 (10 points - Elapsed Time Write a Java application class named TravelTime that prompts the user to enter the following information: the number

 Problem 2 (10 points - Elapsed Time Write a Java application

Problem 2 (10 points - Elapsed Time Write a Java application class named TravelTime that prompts the user to enter the following information: the number of miles traveled for a vacation trip and the average driving speed for the trip. As output the program will display the time it took to make the trip. Please use the sample program run to determine the data types you are to use to arrive at the solution. Sample Program Run Enter the number of miles traveled: 183.67 Enter the average speed: 58 The elapsed time for the trip is 3.17 hours

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!