blob: ca3b156926fc1caf579e68216e957f3a2fe40f80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
//
//
//(a)
FB_AB=30+(30/60)
BB_AB=FB_AB
mins=(BB_AB-int(BB_AB))*60
deg=int(BB_AB)
printf("\n N %0.3f degrees %0.3f minutes W",deg,mins)
//(b)
FB_AB=40+(30/60)
BB_AB=FB_AB
mins=(BB_AB-int(BB_AB))*60
deg=int(BB_AB)
printf("\n S %0.3f degrees %0.3f minutes E",deg,mins)
//(c)
FB_AB=60+(15/60)
BB_AB=FB_AB
mins=(BB_AB-int(BB_AB))*60
deg=int(BB_AB)
printf("\n N %0.3f degrees %0.3f minutes E",deg,mins)
//(d)
FB_AB=45+(30/60)
BB_AB=FB_AB
mins=(BB_AB-int(BB_AB))*60
deg=int(BB_AB)
printf("\n S %0.3f degrees %0.3f minutes W",deg,mins)
|