Update dimensions.py

This commit is contained in:
LazyAssassin445
2017-02-23 18:53:41 +00:00
parent 2faa58ccec
commit 51186e30a2

View File

@@ -1,4 +1,6 @@
import math as maths
thickness = int(input("How thick is your wood in millimetres? "))
overhang = int(input("How much do you want the top plank to overhang in millimetres? "))
@@ -12,23 +14,21 @@ birdbo2 = 150
birdto1 = 150+20+(thickness*3)
birdto2 = 150
#work out side dimensions
si1 = 440
si2 = 150+20+(thickness*3)
#work out main dimenstions
#work out main dimensions
fr1 = 222+thickness
fr2 = 150
ba1 = 538+thickness
ba2 = 150+(2*thickness)
bo1 = 150+20+(2*thickness)
bo2 = 150
to1 = 150+(2*thickness)
to1 = round(maths.sqrt(2*(si2*si2)), 0)+overhang
to2 = 150+20+(thickness*4)
#work out side dimensions
si1 = 440
si2 = 150+20+(thickness*3)
print("\nBIRD SECTION\n")
print("Front = ", birdfr1, " X ", birdfr2)
print("Back = ", birdba1, " X ", birdba2)