Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The purpose of this exercise is to choose a specific vessel to accomplish a given mission using minimal energy. Three vessels are available and representative

image text in transcribedimage text in transcribed

The purpose of this exercise is to choose a specific vessel to accomplish a given mission using minimal energy. Three vessels are available and representative estimates of their engineering characteristics are: Dalhousies autonomous sailboat that travels at an average speed of 3 knots, and consumes on average 2.4 Watts. Liquid Robotics' WaveGlider that travels at an average speed of 1.4 knots, and consumes on average 18 Watts. Kongsberg's Hugin travels at an average speed of 7 knots, and consumes on average 36 Watts. It should be noted that one knot is one nautical mile per hour, and one nautical mile is 1.852 km. Design and write a program that achieves the following: Greets a user. Then, in an infinite loop, the program requests the user to enter the mission distance. Using the speed of the vessel, the time taken to accomplish the distance is calculated, as well as the energy required. For each vessel, the duration information as well as the energy is printed to the screen to inform the user. Also, the vessel with the minimal energy is identified. 3 Before writing the program in C, develop the algorithm using a flow graph. Hand in your code (the C file), as well as the documentation used to structure your program (objectives, and flow chart). Make sure to adequately comment your code, and to define relevant variables. As you analyze this problem, you may want to answer this question: does the decision depend on the distance of the mission? Definition of the objectives in your own words ( 2 marks). Program Organization (5 marks) - Show and describe a flowchart or pseudocode. Program (5 marks) - Functioning code in C, with adequate functions, variables, and comments. The teaching assistants will test the code, so please upload each c file individually (not zipped)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

What is focal length? Explain with a diagram and give an example.

Answered: 1 week ago

Question

What is physics and how does it apply in daily life?

Answered: 1 week ago