Question: Write a Java program that calculates how many hours it will take to make a trip by car. Step 1 . Create an algorithm for
Write a Java program that calculates how many hours it will take to make a trip by car.
Step Create an algorithm for the program either a flowchart or pseudocode You will have to submit the algorithm so make sure it is legible if drawn by hand.
Step Create a program in Eclipse that does the following.
Inputs: The program must prompt the user for the average speed mph of the car and the trip distance.
Enter the average miles per hour mph for the car this must be an integer:
Enter the distance in miles the trip is this must be a double:
Output: The program should have this output below is an example:
The trip will take the following number of hours:
Test data: Use the following data to test your program:
The car averages and the trip is miles.
Take a screen shot of your program running in Eclipse and paste it into a Word document. It should look like the image below.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
