ok sir... Here is the first part my Machine prog.
Inverse Position Azimuth and Path Distance Calculation Sheet
Latitude Longitude
Station West ˚ ‘ “ ˚ ‘ “
Station East ˚ ‘ “ ˚ ‘ “
difference Δφ Δλ
convert to seconds Δφsec Δλsec
φm =
φsmaller + Δφsec/2 = _________˚ _________‘ _________“
Azimuth Calculations
log10 Bm/Am = ___________ <============= i will need
the look up table i sent a while ago..
+ log10 cos φm = ___________
+ log10 Δλsec = ___________
- log10 Δφsec = ___________
log10 cot w = ___________
w = ______˚ ______’ ______”
Az at W is 90˚ + w – C
= 90˚ + 37˚ 39’ 26.7’’- 0˚ 2’ 36’’
= 127 ˚ 36’ 50.7’’
Az at E is 270˚ + w + C
= 270˚ + 37˚ 39’ 26..7’’ +0˚ 2’ 36’’
= 307 ˚ 42’ 2.7’’
Now this is my source code sir...
#include <stdio.h>
#include <conio.h>
#include "11.h"
int main(void)
{
double deg;
double min;
double sec;
double decimal_deg_LatE;
double decimal_deg_LatW;
double decimal_deg_LonW;
double decimal_deg_LonE;
double sec_LatE;
double sec_LonE;
double sec_LatW;
double sec_LonW;
int lat;
int logAm;
float logBmAm;
gotoxy(28,3);printf("ENTER THE EXACT SITE LOCATION");
gotoxy(10,5); printf("Latitude Station East");
gotoxy(10,6);printf("Enter degrees: ");
scanf("%lf", °);
getchar(); /* getchar takes care of the line feed character */
gotoxy(10,7);printf("Enter minutes: ");
scanf("%lf", &min);
getchar();
gotoxy(10,8);printf("Enter seconds: ");
scanf("%lf", &sec);
getchar();
min /= (double)60;
sec /= (double)3600;
decimal_deg_LatE = deg + min + sec;
sec_LatE = decimal_deg_LatE * 3600;
gotoxy(10,9);printf("Decimal Degrees: %lf ", decimal_deg_LatE);
gotoxy(10,10);printf("Decimal Seconds: %.0f seconds", sec_LatE);
/*Longitude E*/
gotoxy(10,14); printf("Longitude Station East");
gotoxy(10,15);printf("Enter degrees: ");
scanf("%lf", °);
getchar(); /* getchar takes care of the line feed character */
gotoxy(10,16);printf("Enter minutes: ");
scanf("%lf", &min);
getchar();
gotoxy(10,17);printf("Enter seconds: ");
scanf("%lf", &sec);
getchar();
min /= (double)60;
sec /= (double)3600;
decimal_deg_LonE = deg + min + sec;
sec_LonE = decimal_deg_LonE * 3600;
gotoxy(10,18);printf("Decimal Degrees: %lf", decimal_deg_LonE);
gotoxy(10,19);printf("Decimal Seconds: %.0f seconds", sec_LonE);
/*Longitude W*/
gotoxy(46,5); printf("Latitude Station West");
gotoxy(46,6);printf("Enter degrees: ");
scanf("%lf", °);
getchar(); /* getchar takes care of the line feed character */
gotoxy(46,7);printf("Enter minutes: ");
scanf("%lf", &min);
getchar();
gotoxy(46,8);printf("Enter seconds: ");
scanf("%lf", &sec);
getchar();
min /= (double)60;
sec /= (double)3600;
decimal_deg_LatW = deg + min + sec;
sec_LatW = decimal_deg_LatW * 3600;
gotoxy(46,9);printf("Decimal Degrees: %lf", decimal_deg_LatW);
gotoxy(46,10);printf("Decimal Seconds: %.0f seconds", sec_LatW);
/*Longitude W*/
gotoxy(46,14); printf("Longitude Station West");
gotoxy(46,15);printf("Enter degrees: ");
scanf("%lf", °);
getchar(); /* getchar takes care of the line feed character */
gotoxy(46,16);printf("Enter minutes: ");
scanf("%lf", &min);
getchar();
gotoxy(46,17);printf("Enter seconds: ");
scanf("%lf", &sec);
getchar();
min /= (double)60;
sec /= (double)3600;
decimal_deg_LonW = deg + min + sec;
sec_LonW = decimal_deg_LonW * 3600;
gotoxy(46,18);printf("Decimal Degrees: %lf", decimal_deg_LonW);
gotoxy(46,19);printf("Decimal Seconds: %.0f seconds", sec_LonW);
gotoxy(28,22);printf("press any key to continue");
getche();
if(decimal_deg_LatE < decimal_deg_LatW)
{clrscr();
lat = decimal_deg_LatE + (( decimal_deg_LatW - decimal_deg_LatE) / 2 );
}}
that's it sir . .. I can't go on ... My problem is the next formula... i dont
know how to make look up table... and make it in a header file... and call it
in my main program...
[Non-text portions of this message have been removed]