Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

While spending the summer as a surveyor\'s assistant, you decide to write a prog

ID: 3651680 • Letter: W

Question

While spending the summer as a surveyor's assistant, you decide
to write a program that transforms compass headings in degrees
(0 to 360) to compass bearings. A compass bearing consists of three
items: the direction you face (north or south), an angle between 0 and
90 degrees, and the direction you turn before walking (east or west).
For example, to get the bearing for a compass heading of 110.0
degrees, you would first face due south (180 degrees) and then turn
70 . 0 degrees east (180 . 0 - 11 0 .0). Be sure to check the input for
invalid compass headings.
Please put all the answer , will rate 5 stairs to the best answer! thanks

Explanation / Answer

#include using namespace std; int main() { int h; while(1) { couth; while(h359) { couth; } if(h>=0 && h