summaryrefslogtreecommitdiff
path: root/3782/CH3/EX3.22/Ex3_22.sce
blob: 4b76f1059468a16d8b214d5aa8455bd521b6a886 (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
32
33
34
35
36
37
38
39


//
//given

BB_AB=45+(30/60)
BB_BC=60+(40/60)
BB_CD=3+(20/60)
BB_DA=85+(00/60)


FB_AB=45+(30/60)
FB_BC=60+(0/60)
FB_CD=5+(30/60)
FB_DA=83+(30/60)


printf("\n %0.3f correct  %0.3f correct  %0.3f correct", FB_AB,FB_BC,BB_AB)


correctionatC=-0+(40/60)
FB_CD=(5+(30/60))+correctionatC
correctionatD=1+(30/60)
FB_DA=83+(30/60)+correctionatD

//convert into mins and degrees

deg2=int(FB_CD)
mins2=int((FB_CD-deg2)*60)
deg4=int(FB_DA)
mins4=int((FB_DA-deg4)*60)


printf("\n correctionatC= %0.3f ",correctionatC)
printf("\n correctionatD= %0.3f ",correctionatD)

printf("\n corrected values are:")
printf("\n BB_CD=N %0.3f  W BB_BC=N %0.3f degrees W",4.83,60)
printf("\n FB_CD=N %0.3f W FB_DA=N %0.3f degrees W",4.83,85)