(35S) Azimuth to Bearing/Quadrant and vice-versa
|
11-09-2017, 03:42 PM
Post: #6
|
|||
|
|||
RE: (35S) Azimuth to Bearing/Quadrant and vice-versa
(11-08-2017 06:56 PM)Dieter Wrote: I admit I don't know anything about azimuths and bearings, but I noticed that your program uses a quite creative way of checking whether something has been entered or not. This is done by storing pi in X and Y, and after the prompt the program checks whether X and Y are equal. I was originally using X=0? to test if a user entered anything in or not but I ran across multiple instances where I needed to enter a 0. that is when I thought of using π. Even if I needed to type in π I would not be carrying it out as may places as does the calculator. (11-08-2017 06:56 PM)Dieter Wrote: I would like to suggest another method. The user enters either bearing and quadrant or an azimuth. Since all values are positive (or at least not negative) the sign of the user input may be used to distinguish whether the one or the other has been entered. Also bearing and quadrant may be entered simultaneously, e.g. with bearing [ENTER] quadrant. A negative quadrant then can be used as a marker. See below for some examples. I do like your idea of using a negative quadrant. I never thought of that. I may be changing the program I have now. Being able to enter the number then executing the program and not having any prompts will save on memory and time for sure. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(35S) Azimuth to Bearing/Quadrant and vice-versa - JeremyBeck - 11-06-2017, 10:57 PM
RE: (35S) Azimuth to Bearing/Quadrant and vice-versa - PedroLeiva - 11-07-2017, 12:58 AM
RE: (35S) Azimuth to Bearing/Quadrant and vice-versa - JeremyBeck - 11-07-2017, 04:54 PM
RE: (35S) Azimuth to Bearing/Quadrant and vice-versa - PedroLeiva - 11-08-2017, 12:50 PM
RE: (35S) Azimuth to Bearing/Quadrant and vice-versa - Dieter - 11-08-2017, 06:56 PM
RE: (35S) Azimuth to Bearing/Quadrant and vice-versa - JeremyBeck - 11-09-2017 03:42 PM
|
User(s) browsing this thread: 1 Guest(s)