summaryrefslogtreecommitdiff
path: root/3782/CH3/EX3.5/Ex3_5.sce
blob: 08e0f3bed62294c9ea7ea80d56b2a3bb38a1aeef (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

//
//

//(a)
BB_AB=40+(30/60)
FB_AB=BB_AB+180
mins=(FB_AB-int(FB_AB))*60
deg=int(FB_AB)
printf("\n %0.3f degrees %0.3f minutes W",deg,mins)
//(b)
BB_BC=310+(45/60)
FB_BC=BB_BC-180
mins=(FB_BC-int(FB_BC))*60
deg=int(FB_BC)
printf("\n %0.3f degrees %0.3f minutes W",deg,mins)

//(c)
BB_CD=145+(45/60)
FB_CD=BB_CD+180
mins=(FB_CD-int(FB_CD))*60
deg=int(FB_CD)
printf("\n %0.3f degrees %0.3f minutes W",deg,mins)

//(d)
BB_DE=215+(30/60)
FB_DE=BB_DE-180
mins=(FB_DE-int(FB_DE))*60
deg=int(FB_DE)
printf("\n %0.3f degrees %0.3f minutes W",deg,mins)