Question: java program Overview & Instructions Write a program to summarize information for long cruise for a maritime freighter. Precise sensors have measured key elements of
java program
Overview & Instructions
Write a program to summarize information for long cruise for a maritime freighter. Precise sensors have
measured key elements of the voyage:
Plausible Test Values
Time seconds seconds
Distance meters meters
Fuel liters liters
Cargo kilograms kilograms
You are tasked with writing a summary report once the cruise is complete. This requires carefully calculated
unit conversions. Your output report should look similar to this:
SUMMARY
Trip duration: xx weeks xx days xx hours xx minutes xx seconds
Distance travelled: xxxx nautical miles
Average speed xxx knots
Fuel used: xxxx gallons
Fuel efficiency: xxxx gallon per nautical mile
Cargo: xxxxx tons
Cargofuel rate: xxxx tons per gallon
Include exclusive use of dialogbased input and output for this solution. You are free of course to integrate use
of the Java console for testing, but be sure the final solution utilizes dialog boxes. Design your input dialogs to
include clear instructions and make sure your output dialog is organized, understandable, and includes proper
units. Be sure your decimal outputs are formatted to one or two decimal places as indicated in the suggested
output model format above Consider "reading ahead" to utilize either String.format or
DecimalFormat actions for this. Note that trip duration should be integeronly calculations.
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
