Question: JAVA You are planning a trip on the ocean. On the ocean distance is measured in Nautical Miles (aka knots). A Nautical Mile is equal

JAVA

You are planning a trip on the ocean. On the ocean distance is measured in Nautical Miles (aka knots). A Nautical Mile is equal to 1.1508 Regular Miles.

You would like to calculate the distance you will travel and the time it will take you to travel that distance at the top speed and the average speed of your boat.

Your program must ask the user to enter the following information and save the values entered into variables (use the types and names below).

  • int distanceTraveledInNauticalMiles
  • double topSpeedOfTheBoatInKnots
  • double averageSpeedOfTheBoatInKnots

Here is sample input/output

Please enter the distance you will travel in Nautical Miles: 18 Please enter the top speed of the boat in knots: 5.8 Please enter the average speed of the boat in knots 4.0

Distanced to travel in Regular Miles: 20.7144 Travel top at top speed: 3.10345 hours at 5.8 knots Travel top at average speed: 4.5 hours at 4.0 knots

Name your program: NauticalMiles_yourInitials.java (yourInitials represents your initials).

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!