Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need help on this assignment NTRODUCTION: An innovation in fishing is being able to have a boat follow a path plotted on a map. This

need help on this assignment
image text in transcribed
image text in transcribed
NTRODUCTION: An innovation in fishing is being able to have a boat follow a path plotted on a map. This allows the fisherman to focus on fishing, leaving the driving of the boat to a computer-controlled electric trolling motor. Your company would like to make a sea-going fishing boat capable of this autonomous navigation. However, electric motors are not powerful enough to use on large bodies of water, and the company is planning to use the inboard motor. The computer controlling the navigation can control both position and speed. Based on laboratory testing, the following data set gyas generated: From this data, the company developed the following equation to find speed as a function of motor RPM: s=2.261106x27.027105x+4.832 Where: s=speed in knots x= boat motor RPM While this equation is an approximation, the company finds it accurate enough for this particular application. ASSIGNMINT: Write a C program capable of estimating the boat's speed in knots, in miles per hour, and in kilometers per hour for a user-entered RPM. Use symbolic constants in preprocessor directives to store your conversion factors for conversion. Hints: 1 knot =1.15078 mile per hour 1knot=1.852 kilometer per hour 1 mile per hour =1.60934 kilometers per hour Use the "Code Sections. ." template on Blackboard to write your code. OUTPUT FORMAT: BOAT SPEED CALCULATOR Enter the motor RPM: x RESULTS Boat speed =xxx,x knots Boat speed = xxxz, x miles/hour Boat speed =xxxx,x kilometers / hour SUBMITTING ASSIGNMINTS: Once you have your program working, exit the C compiler that you are using. Make sure that your source program file name conforms to the following specifications: su.pu fiver last where: sn is your section number (you are in section 4 ) pn is the assignment number (3) first is your first name last is your last name An example for the first assignment would be 4_3_elmer_fudd.c or 4_3_elmer_fudd.cpp. Submission: Submit your source program using the Assignments button in Blackboard. Remember to submit your C source program in standard ANSI C (C89/90) format only. No other format will be accepted. If you make changes to your program and need to resubmit, rename the file such as 4.3_elmer_fudd_2.cpp or 4.3_elmer_fudd_3.c, etc. Then use the Assignments button in Blackboard to submit the new version. Only the most current submitted program version will be graded

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

The company has fair promotion/advancement policies.

Answered: 1 week ago