-
Notifications
You must be signed in to change notification settings - Fork 1
/
iti_prob.py
150 lines (86 loc) · 4.21 KB
/
iti_prob.py
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
hotel_rates = [3500, 4500, 9000, 20000, 45000]
durations = [3 , 5 , 6, 7, 8]
extra_kids = [1,2,3]
extra_adult = 1
scuba = 4000
kayak_day = 2500
courseow = 33000
courseaow = 29000
candlelightdindin = 10000
transfers2island = 5500
transfers3island = 7500
comm = 15
tax = .05
package_options = {}
package_no_tax = {}
package_activity_1pax_tax_2islandtrans = {}
package_activity_1pax_pre_tax_2islandtrans = {}
package_activity_2pax_pre_tax_2islandtrans = {}
package_activity_2pax_tax_2islandtrans ={}
package_activity_1pax_tax_3islandtrans = {}
package_activity_1pax_pre_tax_3islandtrans = {}
package_courseow_1pax_pre_tax_2islandtrans = {}
package_courseow_1pax_tax_2islandtrans = {}
package_courseaow_1pax_tax_2islandtrans = {}
extra_pax = {}
class calc:
def base_room():
for i in durations:
#rooms only
pre_tax = [(x*i) for x in hotel_rates]
package_no_tax[i] = pre_tax
with_tax = [pre_tax + (pre_tax * tax) for pre_tax in pre_tax]
package_options[i] = with_tax
#2island + rooms + scuba + kayak for 1pax
acitiv1_2island = [pre_tax + (scuba * 1) + (kayak_day * 1) + (transfers2island * 1)for pre_tax in pre_tax]
package_activity_1pax_pre_tax_2islandtrans[i] = acitiv1_2island
activ1_2island_tax = [acitiv1_2island + (acitiv1_2island * tax) for acitiv1_2island in acitiv1_2island]
package_activity_1pax_tax_2islandtrans[i] = activ1_2island_tax
#2island + rooms + scuba + kayak for 2pax
acitivpax2_island2 = [pre_tax + (scuba * 2) + (kayak_day * 2) + (transfers2island * 2)for pre_tax in pre_tax]
package_activity_2pax_pre_tax_2islandtrans[i] = acitivpax2_island2
activpax2_island2_tax = [acitivpax2_island2 + (acitivpax2_island2 * tax) for acitivpax2_island2 in acitivpax2_island2]
package_activity_2pax_tax_2islandtrans[i] = activpax2_island2_tax
#3island + rooms + scuba + kaya for 1pax
acitiv1_3island = [pre_tax + (scuba * 1) + (kayak_day * 1) + (transfers3island * 1) for pre_tax in pre_tax]
package_activity_1pax_pre_tax_3islandtrans[i] = acitiv1_3island
activ1_3island_tax = [acitiv1_3island + (acitiv1_3island * tax) for acitiv1_3island in acitiv1_3island]
package_activity_1pax_tax_3islandtrans[i] = activ1_3island_tax
#2island + rooms + OW Course for 1pax
pax1_course_2island_pre_tax = [pre_tax + courseow + (transfers2island * 1) for pre_tax in pre_tax]
package_courseow_1pax_pre_tax_2islandtrans[i] = pax1_course_2island_pre_tax
pax1_course_2island_tax = [pax1_course_2island_pre_tax + (pax1_course_2island_pre_tax * tax) for pax1_course_2island_pre_tax in pax1_course_2island_pre_tax]
package_courseow_1pax_tax_2islandtrans[i] = pax1_course_2island_tax
x = calc.base_room()
print(" ")
for i in durations:
print(f"Following Calculations Represent Prices Calculated for {i} Nights")
print(" ")
for i in hotel_rates:
print(f"Hotel Rates Calculated for {i} Categories")
print(" ")
print("VARIATIONS: BACKPACKER, BUDGET, VIBEY, LUXURY, ULTRA-LUXURY")
print(" ")
#for i in package_no_tax:
#print(f"{i}N Stay ONLY & NO_TAX" , package_no_tax[i])
for i in package_options:
print(f"{i}N Stay ONLY & Tax" , package_options[i])
print(" ")
#for i in package_activity_1pax_pre_tax_2islandtrans:
#print(f"1pax {i}N Kayak + Scuba + Transfer2 & NO_TAX" , package_activity_1pax_pre_tax_2islandtrans[i])
for i in package_activity_1pax_tax_2islandtrans:
print(f"1pax {i}N Kayak + Scuba + Transfer2 & Tax" , package_activity_1pax_tax_2islandtrans[i])
print(" ")
for i in package_activity_2pax_tax_2islandtrans:
print(f"2pax {i}N Kayak + Scuba + Transfer2 & Tax" , package_activity_2pax_tax_2islandtrans[i])
#for i in package_activity_1pax_pre_tax_3islandtrans:
#print(f"1pax {i}N Kayak + Scuba + Transfer3 & NO_TAX" , package_activity_1pax_pre_tax_3islandtrans[i])
print(" ")
for i in package_activity_1pax_tax_3islandtrans:
print(f"1pax {i}N Kayak + Scuba + Transfer3 & Tax" , package_activity_1pax_tax_3islandtrans[i])
#for i in package_courseow_1pax_pre_tax_2islandtrans:
#print(f"1pax {i}N Course OW + Transfer2 & NO_TAX" , package_courseow_1pax_pre_tax_2islandtrans[i])
print(" ")
for i in package_courseow_1pax_tax_2islandtrans:
print(f"1pax {i}N Course OW + Transfer3 & Tax" , package_courseow_1pax_tax_2islandtrans[i])
x = input("Input to exit")