summaryrefslogtreecommitdiff
path: root/3782/CH3/EX3.24/Ex3_24.sce
blob: 390f920e5d7861a6f905da518484812c771c5166 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69


//
//given

BB_AB=239+(00/60)
BB_BC=317+(0/60)
BB_CD=36+(30/60)
BB_DE=29+(00/60)
BB_EA=138+(45/60)

FB_AB=59+(0/60)
FB_BC=139+(30/60)
FB_CD=215+(15/60)
FB_DE=208+(0/60)
FB_EA=318+(30/60)

//(a)
includedA=-FB_AB+BB_EA
includedB=-FB_BC+BB_AB
includedC=BB_BC-FB_CD
includedD=360-(171+(30/60))
exteriorD=FB_DE-BB_CD
exteriorE=FB_EA-BB_DE
includedE=360-(289+(30/60))


//convert into mins and degrees
deg1=int(includedA)
mins1=int((includedA-deg1)*60)
deg2=int(includedB)
mins2=int((includedB-deg2)*60)
deg3=int(includedC)
mins3=int((includedC-deg3)*60)
deg4=int(exteriorD)
mins4=int((exteriorD-deg4)*60)
deg5=int(includedD)
mins5=int((includedD-deg5)*60)
deg6=int(exteriorE)
mins6=int((exteriorE-deg6)*60)
deg7=int(includedE)
mins7=int((includedE-deg7)*60)

n=5
check=(2*n-4)*90
summ=includedA+includedB+includedC+includedD+includedE

printf("\n included angle A= %0.3f degrees %0.3f minutes",deg1,mins1)
printf("\n included angle B= %0.3f degrees %0.3f minutes",deg2,mins2)
printf("\n included angle C= %0.3f degrees %0.3f minutes",deg3,mins3)
printf("\n exterior angle D= %0.3f degrees %0.3f minutes",deg4,mins4)
printf("\n included angle D= %0.3f degrees %0.3f minutes",deg5,mins5)
printf("\n exterior angle D= %0.3f degrees %0.3f minutes",deg6,mins6)
printf("\n included angle E= %0.3f degrees %0.3f minutes",deg7,mins7)
printf("\n %0.3f degrees %0.3f degrees ",check,summ)
//(b)
printf("\n %0.3f correct  %0.3f correct  %0.3f correct", FB_AB,FB_BC,BB_AB)



FB_CD=(215+(15/60))+(2+(30/60))
BB_CD=(37+(45/60))
correctionatD=(1+(15/60))
FB_DE=(208+(0/60))+correctionatD
FB_EA=(318+(30/60))+(0+(15/60))


printf("\n correction= %0.3f ",correctionatD)
printf("\n corrected values are:")