from __future__ import division
import math
#(a)
WCB_AB=45+(30/60)
QB_AB=WCB_AB
mins=(QB_AB-int(QB_AB))*60
deg=int(QB_AB)
print "N",deg,"degrees",mins,"minutes E"
#(b)
WCB_BC=125+(45/60)
QB_BC=180-WCB_BC
mins=(QB_BC-int(QB_BC))*60
deg=int(QB_BC)
print "S",deg,"degrees",mins,"minutes E"
#(c)
WCB_CD=222+(15/60)
QB_CD=WCB_CD-180
deg=int(QB_CD)
mins=(QB_CD-deg)*60
print "S",deg,"degrees",mins,"minutes W"
#(d)
WCB_DE=320+(30/60)
QB_DE=360-WCB_DE
deg=int(QB_DE)
mins=(QB_DE-deg)*60
print "N",deg,"degrees",mins,"minutes W"
from __future__ import division
import math
#(a)
QB_AB=36+(30/60)
WCB_AB=180+QB_AB
mins=(WCB_AB-int(WCB_AB))*60
deg=int(WCB_AB)
print deg,"degrees",mins,"minutes"
#(b)
QB_BC=43+(30/60)
WCB_BC=180-QB_BC
mins=(WCB_BC-int(WCB_BC))*60
deg=int(WCB_BC)
print deg,"degrees",mins,"minutes"
#(c)
QB_CD=26+(45/60)
WCB_CD=QB_CD
mins=(WCB_CD-int(WCB_CD))*60
deg=int(WCB_CD)
print deg,"degrees",mins,"minutes"
#(d)
QB_DE=40+(15/60)
WCB_DE=360-QB_DE
mins=(WCB_DE-int(WCB_DE))*60
deg=int(WCB_DE)
print deg,"degrees",mins,"minutes"
from __future__ import division
import math
#(a)
FB_AB=310+(30/60)
BB_AB=FB_AB-180
mins=(BB_AB-int(BB_AB))*60
deg=int(BB_AB)
print deg,"degrees",mins,"minutes"
#(b)
FB_BC=145+(15/60)
BB_BC=FB_BC+180
mins=(BB_BC-int(BB_BC))*60
deg=int(BB_BC)
print deg,"degrees",mins,"minutes"
#(c)
FB_CD=210+(30/60)
BB_CD=FB_CD-180
mins=(BB_CD-int(BB_CD))*60
deg=int(BB_CD)
print deg,"degrees",mins,"minutes"
#(d)
FB_DE=60+(45/60)
BB_DE=FB_DE+180
mins=(BB_DE-int(BB_DE))*60
deg=int(BB_DE)
print deg,"degrees",mins,"minutes"
from __future__ import division
import math
#(a)
FB_AB=30+(30/60)
BB_AB=FB_AB
mins=(BB_AB-int(BB_AB))*60
deg=int(BB_AB)
print "N",deg,"degrees",mins,"minutes W"
#(b)
FB_AB=40+(30/60)
BB_AB=FB_AB
mins=(BB_AB-int(BB_AB))*60
deg=int(BB_AB)
print "S",deg,"degrees",mins,"minutes E"
#(c)
FB_AB=60+(15/60)
BB_AB=FB_AB
mins=(BB_AB-int(BB_AB))*60
deg=int(BB_AB)
print "N",deg,"degrees",mins,"minutes E"
#(d)
FB_AB=45+(30/60)
BB_AB=FB_AB
mins=(BB_AB-int(BB_AB))*60
deg=int(BB_AB)
print "S",deg,"degrees",mins,"minutes W"
from __future__ import division
import math
#(a)
BB_AB=40+(30/60)
FB_AB=BB_AB+180
mins=(FB_AB-int(FB_AB))*60
deg=int(FB_AB)
print deg,"degrees",mins,"minutes"
#(b)
BB_BC=310+(45/60)
FB_BC=BB_BC-180
mins=(FB_BC-int(FB_BC))*60
deg=int(FB_BC)
print deg,"degrees",mins,"minutes"
#(c)
BB_CD=145+(45/60)
FB_CD=BB_CD+180
mins=(FB_CD-int(FB_CD))*60
deg=int(FB_CD)
print deg,"degrees",mins,"minutes"
#(d)
BB_DE=215+(30/60)
FB_DE=BB_DE-180
mins=(FB_DE-int(FB_DE))*60
deg=int(FB_DE)
print deg,"degrees",mins,"minutes"
from __future__ import division
import math
#(a)
BB_AB=30+(30/60)
FB_AB=BB_AB
mins=(FB_AB-int(FB_AB))*60
deg=int(FB_AB)
print "S",deg,"degrees",mins,"minutes E"
#(b)
BB_BC=40+(15/60)
FB_BC=BB_BC
mins=(FB_BC-int(FB_BC))*60
deg=int(FB_BC)
print "N",deg,"degrees",mins,"minutes W"
#(c)
BB_CD=60+(45/60)
FB_CD=BB_CD
mins=(FB_CD-int(FB_CD))*60
deg=int(FB_CD)
print "S",deg,"degrees",mins,"minutes W"
#(d)
BB_DE=45+(30/60)
FB_DE=BB_DE
mins=(FB_DE-int(FB_DE))*60
deg=int(FB_DE)
print "N",deg,"degrees",mins,"minutes E"
from __future__ import division
import math
magneticbearing=135+0.5
declination=5+0.25
truebearing=magneticbearing-declination
deg=int(truebearing)
mins=truebearing-deg
print "truebearing of AB=",deg,"degrees",15.0,"minutes"
truebearing=210+(45/60)
declination=8+(15/60)
magnetic_bearing=truebearing+declination
deg=int(magnetic_bearing)
mins=magnetic_bearing-deg
print "magnetic bearing of AB=",deg,"degrees",mins,"minutes"
from __future__ import division
import math
RB_CD=30+(15/60)
WCB_CD=180+RB_CD
declination=10+(15/60)
TB=WCB_CD+declination
truebearing=TB-180
deg=int(truebearing)
mins=(truebearing-deg)*60
print "Required true bearing=","S",deg,"degrees",mins,"minutes","W"
from __future__ import division
import math
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
print "Magnetic bearing=",deg,"degrees",mins,"minutes"
from __future__ import division
import math
#(a)
magneticbearing=175+(30/60)
magneticdeclination=180-magneticbearing
deg=int(magneticdeclination)
mins=(magneticdeclination-deg)*60
print deg,"degrees",mins,"minutes E"
#(b)
magneticdeclination=5+(45/60)
deg=int(magneticdeclination)
mins=(magneticdeclination-deg)*60
print deg,"degrees",mins,"minutes W"
from __future__ import division
import math
bearingOB=140+(15/60)
bearingOA=30+(30/60)
angleAOB=bearingOB-bearingOA
deg=int(angleAOB)
mins=(angleAOB-deg)*60
print "AngleAOB=",deg,"degrees",mins,"minutes"
bearingOC=220+(45/60)
angleBOC=bearingOC-bearingOB
deg=int(angleBOC)
mins=(angleBOC-deg)*60
print "AngleBOC=",deg,"degrees",mins,"minutes"
bearingOD=310+(30/60)
angleCOD=bearingOD-bearingOC
deg=int(angleCOD)
mins=(angleCOD-deg)*60
print "AngleCOD=",deg,"degrees",mins,"minutes"
from __future__ import division
import math
interiorB=(45+(30/60))+180-(120+(15/60))
deg=int(interiorB)
mins=(interiorB-deg)*60
print "Interior angle B=",deg,"degrees",mins,"minutes"
interiorC=(120+(15/60))+180-(200+(30/60))
deg=int(interiorC)
mins=(interiorC-deg)*60
print "Interior angle C=",deg,"degrees",mins,"minutes"
exteriorD=(280+(45/60))+180-(200+(30/60))
deg=int(exteriorD)
mins=(exteriorD-deg)*60
print "Exterior angle D=",deg,"degrees",mins,"minutes"
interiorD=360-(260+(15/60))
deg=int(interiorD)
mins=(interiorD-deg)*60
print "Interior angle D=",deg,"degrees",mins,"minutes"
from __future__ import division
import math
FB_AB=80+(30/60)
FB_BC=FB_AB+180-60
FB_CA=FB_BC-180+300
deg1=int(FB_AB)
mins1=(FB_AB-deg1)*60
deg2=int(FB_BC)
mins2=(FB_BC-deg2)*60
deg3=int(FB_CA)
mins3=(FB_CA-deg3)*60
print deg1,"degrees",mins1,"minutes";
print deg2,"degrees",mins2,"minutes";
print deg3,"degrees",mins3,"minutes";
print deg1,"degrees",mins1,"minutes";
from __future__ import division
import math
FB_AB=120+(30/60)
FB_BC=FB_AB+180-90
FB_CD=FB_BC-180+270
FB_DA=FB_CD-180-90
deg1=int(FB_AB)
mins1=(FB_AB-deg1)*60
deg2=int(FB_BC)
mins2=(FB_BC-deg2)*60
deg3=int(FB_CD)
mins3=(FB_CD-deg3)*60
deg4=int(FB_DA)
mins4=(FB_DA-deg4)*60
print deg1,"degrees",mins1,"minutes";
print deg2,"degrees",mins2,"minutes";
print deg3,"degrees",mins3,"minutes";
print deg4,"degrees",mins4,"minutes";
from __future__ import division
import math
interiorB=540/5
FB_AB=30+(0/60)
FB_BC=FB_AB+180+interiorB
FB_CD=FB_BC-180+interiorB
FB_DE=FB_CD-180+interiorB
FB_EA=FB_DE+180-360+interiorB
FB_AB=FB_EA+180-360+interiorB
deg1=int(FB_AB)
mins1=(FB_AB-deg1)*60
deg2=int(FB_BC)
mins2=(FB_BC-deg2)*60
deg3=int(FB_CD)
mins3=(FB_CD-deg3)*60
deg4=int(FB_DE)
mins4=(FB_DE-deg4)*60
deg5=int(FB_EA)
mins5=0
deg6=int(FB_AB)
mins6=0
print deg1,"degrees",mins1,"minutes"
print deg2,"degrees",mins2,"minutes"
print deg3,"degrees",mins3,"minutes"
print deg4,"degrees",mins4,"minutes"
print deg5,"degrees",mins5,"minutes"
print deg6,"degrees",mins6,"minutes"
from __future__ import division
import math
BB_AB=330+(15/60)
BB_BC=200+(30/60)
BB_CD=115+(45/60)
BB_DE=38+(0/60)
BB_EA=300+(30/60)
exteriorA=BB_EA-(150+(15/60))
interiorA=360-exteriorA
exteriorB=BB_AB-(20+(30/60))
interiorB=360-exteriorB
interiorC=(295+(45/60))-BB_BC
interiorD=218-BB_CD
interiorE=(120.5)-BB_DE
deg1=int(exteriorA)
mins1=int((exteriorA-deg1)*60)
deg2=int(interiorA)
mins2=int((interiorA-deg2)*60)
deg3=int(exteriorB)
mins3=int((exteriorB-deg3)*60)
deg4=int(interiorB)
mins4=int((interiorB-deg4)*60)
deg5=int(interiorC)
mins5=int((interiorC-deg5)*60)
deg6=int(interiorD)
mins6=int((interiorD-deg6)*60)
deg7=int(interiorE)
mins7=int((interiorE-deg7)*60)
n=5
check=(2*n-4)*90
summ=interiorA+interiorB+interiorC+interiorD+interiorE
print "exterior angle A",deg1,"degrees",mins1,"minutes"
print "interior angle A",deg2,"degrees",mins2,"minutes"
print "Exterior angle B",deg3,"degrees",mins3,"minutes"
print "interior angle B",deg4,"degrees",mins4,"minutes"
print "interior angle C",deg5,"degrees",mins5,"minutes"
print "interior angle D",deg6,"degrees",mins6,"minutes"
print "interior angle E",deg7,"degrees",mins7,"minutes"
print check,"degrees",summ,"degrees"
from __future__ import division
import math
FB_AB=45+(30/60)
FB_BC=60+(0/60)
FB_CD=10+(30/60)
FB_DA=75+(45/60)
BB_AB=45+(30/60)
BB_BC=60+(0/60)
BB_CD=10+(30/60)
BB_DA=75+(45/60)
interiorA=180-(FB_AB+BB_DA)
interiorB=(FB_BC+BB_AB)
interiorC=180-(BB_BC+FB_CD)
interiorD=(FB_DA+BB_CD)
deg1=int(interiorA)
mins1=int((interiorA-deg1)*60)
deg2=int(interiorB)
mins2=int((interiorB-deg2)*60)
deg3=int(interiorC)
mins3=int((interiorC-deg3)*60)
deg4=int(interiorD)
mins4=int((interiorD-deg4)*60)
n=4
check=(2*n-4)*90
summ=interiorA+interiorB+interiorC+interiorD
print "Interior angle A",deg1,"degrees",mins1,"minutes"
print "Interior angle B",deg2,"degrees",mins2,"minutes"
print "Interior angle C",deg3,"degrees",mins3,"minutes"
print "Interior angle D",deg4,"degrees",mins4,"minutes"
print check,"degrees",summ,"degrees"
from __future__ import division
import math
BB_AB=330+(0/60)
BB_BC=48+(0/60)
BB_CD=127+(45/60)
BB_DE=120+(0/60)
BB_EA=229+(30/60)
FB_AB=150+(0/60)
FB_BC=230+(30/60)
FB_CD=306+(15/60)
FB_DE=298+(0/60)
FB_EA=49+(30/60)
interiorA=BB_EA-FB_AB
interiorB=BB_AB-FB_BC
exteriorC=FB_CD-BB_BC
interiorC=360-(258+(15/60))
exteriorD=FB_DE-BB_CD
interiorD=360-exteriorD
interiorE=BB_DE-FB_EA
deg1=int(interiorA)
mins1=int((interiorA-deg1)*60)
deg2=int(interiorB)
mins2=int((interiorB-deg2)*60)
deg3=int(exteriorC)
mins3=int((exteriorC-deg3)*60)
deg4=int(interiorC)
mins4=int((interiorC-deg4)*60)
deg5=int(exteriorD)
mins5=int((exteriorD-deg5)*60)
deg6=int(interiorD)
mins6=int((interiorD-deg6)*60)
deg7=int(interiorE)
mins7=int((interiorE-deg7)*60)
n=5
check=(2*n-4)*90
summ=interiorA+interiorB+interiorC+interiorD+interiorE
print "Interior angle A=",deg1,"degrees",mins1,"minutes"
print "Interior angle B=",deg2,"degrees",mins2,"minutes"
print "exterior angle C=",deg3,"degrees",mins3,"minutes"
print "Interior angle C=",deg4,"degrees",mins4,"minutes"
print "exterior angle D=",deg5,"degrees",mins5,"minutes"
print "Interior angle D=",deg6,"degrees",mins6,"minutes"
print "Interior angle E=",deg7,"degrees",mins7,"minutes"
print check,"degrees",summ,"degrees"
error=541-540
correction=(-60/5)
print "error=",error,"degrees"
print correction,"minutes"
correctedvalue1=mins1+correction
correctedvalue2=mins2+correction
correctedvalue4=mins4+correction
correctedvalue6=mins6+correction
correctedvalue7=mins7+correction
print "corrected values are:"
print "Interior angle A=",deg1,"degrees",correctedvalue1,"minutes"
print "Interior angle B=",deg2,"degrees",correctedvalue2,"minutes"
print "Interior angle C=",deg4,"degrees",correctedvalue4,"minutes"
print "Interior angle D=",deg6,"degrees",correctedvalue6,"minutes"
print "Interior angle E=",deg7,"degrees",correctedvalue7,"minutes"
from __future__ import division
import math
BB_AB=13+(0/60)
BB_BC=222+(30/60)
BB_CD=200+(30/60)
BB_DE=62+(45/60)
BB_EA=147+(45/60)
FB_AB=191+(45/60)
FB_BC=39+(30/60)
FB_CD=22+(15/60)
FB_DE=242+(45/60)
FB_EA=330+(15/60)
#(a)
interiorA=FB_AB-BB_EA
interiorB=FB_BC-BB_AB
exteriorC=BB_BC-FB_CD
interiorC=360-(200+(15/60))
interiorD=FB_DE-BB_CD
interiorE=FB_EA-BB_DE
deg1=int(interiorA)
mins1=int((interiorA-deg1)*60)
deg2=int(interiorB)
mins2=int((interiorB-deg2)*60)
deg3=int(exteriorC)
mins3=int((exteriorC-deg3)*60)
deg4=int(interiorC)
mins4=int((interiorC-deg4)*60)
deg6=int(interiorD)
mins6=int((interiorD-deg6)*60)
deg7=int(interiorE)
mins7=int((interiorE-deg7)*60)
n=5
check=(2*n-4)*90
summ=interiorA+interiorB+interiorC+interiorD+interiorE
print "Interior angle A=",deg1,"degrees",mins1,"minutes"
print "Interior angle B=",deg2,"degrees",mins2,"minutes"
print "exterior angle C=",deg3,"degrees",mins3,"minutes"
print "Interior angle C=",deg4,"degrees",mins4,"minutes"
print "Interior angle D=",deg6,"degrees",mins6,"minutes"
print "Interior angle E=",deg7,"degrees",mins7,"minutes"
print check,"degrees",summ,"degrees"
#(b)
print FB_DE,"correct",FB_EA,"correct"
AB=FB_EA-180+interiorA
BC=(194+(15/60))-180+interiorB
CD=(40+(45/60))+180-exteriorC
DE=(20+(30/60))+180+interiorD
deg1=int(AB)
mins1=int((AB-deg1)*60)
deg2=int(BC)
mins2=int((BC-deg2)*60)
deg3=int(CD)
mins3=int((CD-deg3)*60)
deg4=int(DE)
mins4=int((DE-deg4)*60)
print "corrected values are:"
print "FB_AB=",deg1,"degrees",mins1,"minutes"
print "FB_BC=",deg2,"degrees",mins2,"minutes"
print "FB_CD=",deg3,"degrees",mins3,"minutes"
print "FB_DE=",deg4,"degrees",mins4,"minutes"
from __future__ import division
import math
BB_AB=248+(15/60)
BB_BC=326+(15/60)
BB_CD=46+(0/60)
BB_DE=38+(15/60)
BB_EA=147+(45/60)
FB_AB=68+(15/60)
FB_BC=148+(45/60)
FB_CD=224+(30/60)
FB_DE=217+(15/60)
FB_EA=327+(45/60)
#(a)
includedA=-FB_AB+BB_EA
includedB=-FB_BC+BB_AB
includedC=BB_BC-FB_CD
includedD=360-(171+(15/60))
exteriorD=FB_DE-BB_CD
exteriorE=FB_EA-BB_DE
includedE=360-(289+(30/60))
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
print "included angle A=",deg1,"degrees",mins1,"minutes"
print "included angle B=",deg2,"degrees",mins2,"minutes"
print "included angle C=",deg3,"degrees",mins3,"minutes"
print "exterior angle D=",deg4,"degrees",mins4,"minutes"
print "included angle D=",deg5,"degrees",mins5,"minutes"
print "exterior angle D=",deg6,"degrees",mins6,"minutes"
print "included angle E=",deg7,"degrees",mins7,"minutes"
print check,"degrees",summ,"degrees"
#(b)
print FB_AB,"correct",FB_BC,"correct",BB_AB,"correct"
FB_BC=(328+(45/60))-(326+(15/60))
FB_CD=(224+(30/60))+FB_BC
BB_CD=227-180
correctionatD=1
FB_DE=(217+(15/60))+1
BB_DE=FB_DE-180
deg1=int(FB_AB)
mins1=int((FB_AB-deg1)*60)
deg2=int(FB_CD)
mins2=int((FB_CD-deg2)*60)
deg3=int(BB_CD)
mins3=int((BB_CD-deg3)*60)
deg4=int(FB_DE)
mins4=int((FB_DE-deg4)*60)
deg5=int(BB_DE)
mins5=int((BB_DE-deg5)*60)
print "correction=",correctionatD
print "corrected values are:"
print "FB_AB=",deg1,"degrees",mins1,"minutes"
print "FB_CD=",deg2,"degrees",mins2,"minutes"
print "BB_CD=",deg3,"degrees",mins3,"minutes"
print "FB_DE=",deg4,"degrees",mins4,"minutes"
print "BB_DE=",deg5,"degrees",mins5,"minutes"
print "AB=100m, BC=100m,CD=50m, scale=20m for plot"
from __future__ import division
import math
BB_AB=239+(00/60)
BB_BC=317+(00/60)
BB_CD=36+(30/60)
BB_DE=29+(00/60)
BB_EA=138+(45/60)
FB_AB=59+(00/60)
FB_BC=139+(30/60)
FB_CD=215+(15/60)
FB_DE=208+(0/60)
FB_EA=318+(30/60)
print FB_AB,"correct",FB_BC,"correct",BB_AB,"correct"
correctionatC=2+(30/60)
FB_CD=(215+(15/60))+correctionatC
correctionatD=1+(15/60)
FB_DE=208+correctionatD
correctionatE=(15/60)
FB_EA=(318+(30/60))+correctionatE
deg2=int(FB_CD)
mins2=int((FB_CD-deg2)*60)
deg4=int(FB_DE)
mins4=int((FB_DE-deg4)*60)
deg5=int(FB_EA)
mins5=int((FB_EA-deg5)*60)
print "correctionatC=",correctionatC
print "correctionatD=",correctionatD
print "correctionatE=",correctionatE
print "corrected values are:"
print "BB_CD=",217.75," BB_DE=",209.25," BB_EA=",138.75
print "FB_CD=",deg2,"degrees",mins2,"minutes"
print "FB_DE=",deg4,"degrees",mins4,"minutes"
print "FB_EA=",deg5,"degrees",mins5,"minutes"
print "declination=",-10,"degrees W"
BB_AB=239+(00/60)-10
BB_BC=317+(00/60)-10+correctionatC
BB_CD=36+(30/60)-10+correctionatD
BB_DE=29+(00/60)-10
BB_EA=138+(45/60)-10
FB_AB=59-10
FB_BC=(139+(30/60))-10
FB_CD=(215+(15/60))-10+correctionatC
FB_DE=(208+(0/60))-10+correctionatD
FB_EA=(318+(30/60))-10+correctionatE
print "true bearing values:"
print "BB_AB=",BB_AB
print "BB_BC=",BB_BC
print "BB_CD=",BB_CD
print "BB_DE=",BB_DE
print "BB_EA=",BB_EA
print "FB_AB=",FB_AB
print "FB_BC=",FB_BC
print "FB_CD=",FB_CD
print "FB_DE=",FB_DE
print "FB_EA=",FB_EA
from __future__ import division
import math
BB_AB=45+(30/60)
BB_BC=60+(40/60)
BB_CD=3+(20/60)
BB_DA=85+(00/60)
FB_AB=45+(30/60)
FB_BC=60+(0/60)
FB_CD=5+(30/60)
FB_DA=83+(30/60)
print FB_AB,"correct",FB_BC,"correct",BB_AB,"correct"
correctionatC=-0+(40/60)
FB_CD=(5+(30/60))+correctionatC
correctionatD=1+(30/60)
FB_DA=83+(30/60)+correctionatD
deg2=int(FB_CD)
mins2=int((FB_CD-deg2)*60)
deg4=int(FB_DA)
mins4=int((FB_DA-deg4)*60)
print "correctionatC=",correctionatC;
print "correctionatD=",correctionatD
print "corrected values are:";
print "BB_CD=N",4.83,"W"," BB_BC=N",60,"degrees W";
print "FB_CD=N",4.83,"W"," FB_DA=N",85,"degrees W"
from __future__ import division
import math
BB_AB=41+(15/60)
BB_BC=79+(30/60)
BB_CD=20+(0/60)
BB_DA=80+(00/60)
FB_AB=40+(30/60)
FB_BC=80+(45/60)
FB_CD=19+(30/60)
FB_DA=80+(00/60)
print FB_DA,"correct",FB_AB,"correct",BB_DA,"correct";
correctionatB=-0+(45/60)
FB_BC=(80+(45/60))+correctionatB
correctionatC=0+(30/60)
FB_CD=19+(30/60)+correctionatC
print "correctionatB=",correctionatB;
print "correctionatC=",correctionatC;
print "corrected values are:";
print "BB_AB=N",40.5,"E"," BB_BC=N",80,"degrees E";
print "FB_CD=N",20,"E"," FB_DA=S",80,"degrees E"
from __future__ import division
import math
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))
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
print "included angle A=",deg1,"degrees",mins1,"minutes"
print "included angle B=",deg2,"degrees",mins2,"minutes"
print "included angle C=",deg3,"degrees",mins3,"minutes"
print "exterior angle D=",deg4,"degrees",mins4,"minutes"
print "included angle D=",deg5,"degrees",mins5,"minutes"
print "exterior angle D=",deg6,"degrees",mins6,"minutes"
print "included angle E=",deg7,"degrees",mins7,"minutes"
print check,"degrees",summ,"degrees"
#(b)
print FB_AB,"correct",FB_BC,"correct",BB_AB,"correct"
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))
print "correction=",correctionatD;
print "corrected values are:";
print "BB_BC=",319.5, "BB_CD=",73.75,"degrees", "BB_DE=",29.25,"degrees";
print "FB_CD=",217.75, "FB_DE=",209.25,"degrees", "FB_EA=",318.75,"degrees";