Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Hi, can someone write me the code for this question (python)? thank you very much :) Part A: Bearing to Angle Conversion Bearings are angular

image text in transcribedimage text in transcribed

Hi, can someone write me the code for this question (python)?

thank you very much :)

Part A: Bearing to Angle Conversion Bearings are angular measurements used in surveying and navigation. They are expressed in degrees clockwise from North (conventionally shown upwards). On the other hand, positive mathematical angles are counted anti-clockwise from the x-axis, and negative ones clock wise. For example, the red line on the diagrams below is at an angle of 45 degrees, or bearing 135 degrees. To use trigonometric functions with angles expressed as bearings, we would need to convert them to mathematical angles in the range 180 to 180 (and then probably to radians of course). Although a bearing of 270 can be mapped to an angle of 180 or 180, we prefer it to be mapped to 180 . 1. Fill in the table below, using the diagrams as a guide. Some of the entries have already been filled in for you. axis. If your table is correct and you have drawn the graph correctly, you should see two separate straight lines. valid for which range of bearing. angle =m bearing +b where m is the slope and b is the y-intercept 4. You are asked to write a Python program that does the following: * Ask the user to input a real number between 0.0 to 360.0 inclusively. The number is meant to be a besring. * Print the value of angle You can call your program b2d.py You should try to code incrementally. input bearing is not in the correct range

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_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

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

Get Started

Students explore these related Databases questions