summaryrefslogtreecommitdiff
path: root/3782/CH3/EX3.2/Ex3_2.sce
blob: cd9c5a72dcfbc008b72339db3f7a59b8b51ceaa1 (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

//
//

//(a)
QB_AB=36+(30/60)
WCB_AB=180+QB_AB
mins=(WCB_AB-int(WCB_AB))*60
deg=int(WCB_AB)
printf("\n %0.3f degrees %0.3f minutes W",deg,mins)
//(b)
QB_BC=43+(30/60)
WCB_BC=180-QB_BC
mins=(WCB_BC-int(WCB_BC))*60
deg=int(WCB_BC)
printf("\n %0.3f degrees %0.3f minutes W",deg,mins)

//(c)
QB_CD=26+(45/60)
WCB_CD=QB_CD
mins=(WCB_CD-int(WCB_CD))*60
deg=int(WCB_CD)
printf("\n %0.3f degrees %0.3f minutes W",deg,mins)
//(d)
QB_DE=40+(15/60)
WCB_DE=360-QB_DE
mins=(WCB_DE-int(WCB_DE))*60
deg=int(WCB_DE)
printf("\n %0.3f degrees %0.3f minutes W",deg,mins)