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)1,000,000 seconds
Distance (meters)8,000,000 meters
Fuel (liters)1,000,000 liters
Cargo (kilograms)20,000,000 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: xxx.x nautical miles
Average speed xx.x knots
Fuel used: xxx.x gallons
Fuel efficiency: xx.xx gallon per nautical mile
Cargo: xxxx.x tons
Cargo/fuel rate: xx.xx tons per gallon
Include exclusive use of dialog-based 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 integer-only calculations.

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 Programming Questions!