-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSlidingBased.py
More file actions
58 lines (55 loc) · 1.52 KB
/
Copy pathSlidingBased.py
File metadata and controls
58 lines (55 loc) · 1.52 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
width = input("Width: ")
height = input("Height: ")
parts = input("Parts of Window: ")
SashNum = input("Number of Sashes: ")
width = float(width)
height = float(height)
parts = int(parts)
SashNum = int(SashNum)
debug = 1
# .....................................................
# Sum all 4 sides of Frames
FrameSum = ((width*2)+(height*2))*85000
if debug == 1:
print("Frame:", FrameSum)
# Mullions
Mullions = ((parts-1)*(height))*75000
if debug == 1:
print("Mullions:", Mullions)
# Sash
Sashes = SashNum*(((width/parts)*2)+(height*2))*75000
if debug == 1:
print("Sashes:", Sashes)
# Interlock
Interlock = SashNum*((height)*15000)
if debug == 1:
print("InterLock:", Interlock)
# Overlapping Cover
OCover = SashNum*((((width/parts)*2)+(height*2))*15000)
if debug == 1:
print("Overlapping Cover:", OCover)
# Alminuim Rail
Arail = width * 10000
if debug == 1:
print("Alminuim Rail:", Arail)
# Tape
Tape = (SashNum*(((width/parts)*2)+height))*1200
if debug == 1:
print("Tape:", Tape)
# Equipment
Equipment = SashNum*200000
if debug == 1:
print("Equipment:", Equipment)
# Glass
Glass = ((width*height)*0.7)*77000
if debug == 1:
print("Glass:", Glass)
# Installation Equipment
Iequip = SashNum*40000
if debug == 1:
print("Installation Material:", Iequip)
FinalPrice = FrameSum+Mullions+Sashes+Interlock+OCover+Arail+Tape+Tape+Equipment+Glass+Iequip
FinalPrice += (FinalPrice*10)/100
if debug == 1:
print("Installation Price: 10 Percent", (FinalPrice*10)/100)
print("Total price of Sliding Door and window:", FinalPrice)