summaryrefslogtreecommitdiff
path: root/3782/CH3/EX3.10/Ex3_10.sce
blob: 2d86b4a3d5a7e4b68b7b3d89d33bff3e77d08f55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

//
//

//(a)
magneticbearing=175+(30/60)
magneticdeclination=180-magneticbearing
deg=int(magneticdeclination)
mins=(magneticdeclination-deg)*60
printf("\n %0.3f degrees %0.3f minutes W",deg,mins)
//(b)

magneticdeclination=5+(45/60)
deg=int(magneticdeclination)
mins=(magneticdeclination-deg)*60
printf("\n %0.3f degrees %0.3f minutes W",deg,mins)