summaryrefslogtreecommitdiff
path: root/3782/CH3/EX3.9/Ex3_9.sce
blob: 4464b97ef5c813e3aba29d6dcc21ca97066de87f (plain)
1
2
3
4
5
6
7
8
9
10
11
12

//
//

magneticbearing=320+(30/60)
declination=3+(30/60)
truebearing=magneticbearing-declination
declination2=4+(15/60)
MB=truebearing-declination2
deg=int(MB)
mins=(MB-deg)*60
printf("\n Magnetic bearing= %0.3f degrees %0.3f minutes",deg,mins)