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 decideto 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 && hRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.