Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class dglp:
- """Laptops provided by --
- .data : Data entry prices (student prices, 10% markup, GST inclusive)
- .detail : View all variations & prices (student prices, 10% markup, GST inclusive)
- .public : View all variation prices for non-students (20% markup, GST inclusive)"""
- def data(basePrice):
- """Data entry prices arranged as provided order.
- Data entry prices are student prices (10% markup, GST inclusive)
- basePrice : GST exclusive, no markup price."""
- basePrice = int(basePrice) * 1.1
- print('Arrange attributes as ram > ssd\n')
- for r in ram.values():
- for s in ssd.values():
- item = round((basePrice + r + s)*1.15, 3)
- print(str(round(item, 3)))
- print("\nCount : 6")
- def detail(basePrice):
- """Variation details in student prices (10% markup, GST inclusive)
- basePrice : GST exclusive, no markup price."""
- basePrice = int(basePrice) * 1.1
- print("Arrange attributes as ram > ssd\n")
- for rk in ram.keys():
- for sk in ssd.keys():
- item = round((basePrice + ram[rk] + ssd[sk])*1.15, 3)
- print(rk + sk + str(item))
- print("Count : 6")
- def public(basePrice):
- """Variation details in non-student prices (10% markup, GST inclusive)
- basePrice : GST exclusive, no markup price."""
- basePrice = int(basePrice) * 1.1
- print("Arrange attributes as ram > ssd\n")
- for rk in ram.keys():
- for sk in ssd.keys():
- item = round((basePrice + ram[rk] + ssd[sk])*1.15*1.1, 3)
- print(rk + sk + str(item))
- print("Count : 6")
- class dgpc:
- """Desktop PCs provided by --
- .data : Data entry prices (student prices, 10% markup, GST inclusive)
- .detail : View all variations & prices (student prices, 10% markup, GST inclusive)
- .public : View all variation prices for non-students (20% markup, GST inclusive)"""
- def data(basePrice):
- """Data entry prices arranged as provided order.
- Data entry prices are student prices (10% markup, GST inclusive)
- basePrice : GST exclusive, no markup price."""
- basePrice = int(basePrice) * 1.1
- print('Arrange attributes as ram > ssd\n')
- for r in ram.values():
- for s in ssd.values():
- for m in mon23.values():
- item = round((basePrice + m + r + s)*1.15, 3)
- print(str(round(item, 3)))
- print("\nCount : 12")
- def detail(basePrice):
- """Variation details in student prices (10% markup, GST inclusive)
- basePrice : GST exclusive, no markup price."""
- basePrice = int(basePrice) * 1.1
- print("Variation details in student prices (10% markup, GST inclusive)\n")
- for rk in ram.keys():
- for sk in ssd.keys():
- for mk in mon23.keys():
- item = round((basePrice + ram[rk] + ssd[sk] + mon23[mk])*1.15, 3)
- print(rk + sk + mk + str(item))
- print("Count : 12")
- def public(basePrice):
- """Variation details in non-student prices (10% markup, GST inclusive)
- basePrice : GST exclusive, no markup price."""
- basePrice = int(basePrice) * 1.1
- print("Variation details in student prices (10% markup, GST inclusive)\n")
- for rk in ram.keys():
- for sk in ssd.keys():
- for mk in mon23.keys():
- item = round((basePrice + ram[rk] + ssd[sk] + mon23[mk])*1.15*1.1, 3)
- print(rk + sk + mk + str(item))
- print("Count : 12")
- class ptllp:
- """Laptops provided by PTL Computers.
- .data : Data entry prices (student prices, 10% markup, GST inclusive)
- .detail : View all variations & prices (student prices, 10% markup, GST inclusive)
- .public : View all variation prices for non-students (20% markup, GST inclusive)"""
- def data(basePrice):
- """Data entry prices arranged as provided order.
- Data entry prices are student prices (10% markup, GST inclusive)
- basePrice : GST exclusive, no markup price."""
- basePrice = int(basePrice) * 1.1
- print('Arrange attributes as ram > ssd > warr\n')
- for r in ram.values():
- for s in ssd.values():
- for l in lapbag.values():
- for w in warranty.values():
- item = round((basePrice + l + r + s + w)*1.15, 3)
- print(str(round(item, 3)))
- print("\nCount : 24")
- def detail(basePrice):
- """Variation details in student prices (10% markup, GST inclusive)
- basePrice : GST exclusive, no markup price."""
- basePrice = int(basePrice) * 1.1
- print("Variation details in student prices (10% markup, GST inclusive)\n")
- for rk in ram.keys():
- for sk in ssd.keys():
- for lk in lapbag.keys():
- for wk in warranty.keys():
- item = round((basePrice + ram[rk] + ssd[sk] + lapbag[lk] + warranty[wk])*1.15, 3)
- print(rk + sk + lk + wk + str(item))
- print("Count : 24")
- def public(basePrice):
- """Variation details in non-student prices (20% markup, GST inclusive)
- basePrice : GST exclusive, no markup price."""
- basePrice = int(basePrice) * 1.1
- print("Variation details in student prices (10% markup, GST inclusive)\n")
- for rk in ram.keys():
- for sk in ssd.keys():
- for lk in lapbag.keys():
- for wk in warranty.keys():
- item = round((basePrice + ram[rk] + ssd[sk] + lapbag[lk] + warranty[wk])*1.15*1.1, 3)
- print(rk + sk + lk + wk + str(item))
- print("Count : 24")
- class ptlpc:
- """Desktop PCs provided by PTL Computers.
- .data : Data entry prices (student prices, 10% markup, GST inclusive)
- .detail : View all variations & prices (student prices, 10% markup, GST inclusive)
- .public : View all variation prices for non-students (20% markup, GST inclusive)"""
- def data(basePrice):
- """Data entry prices arranged as provided order.
- Data entry prices are student prices (10% markup, GST inclusive)
- basePrice : GST exclusive, no markup price."""
- basePrice = int(basePrice) * 1.1
- print('Arrange attributes as ram > ssd > lapbag > warr\n')
- for r in ram.values():
- for s in ssd.values():
- for w in warranty.values():
- item = round((basePrice + r + s + w)*1.15, 3)
- print(str(round(item, 3)))
- print("\nCount : 12")
- def detail(basePrice):
- """Variation details in student prices (10% markup, GST inclusive)
- basePrice : GST exclusive, no markup price."""
- basePrice = int(basePrice) * 1.1
- print("Variation details in student prices (10% markup, GST inclusive)\n")
- for rk in ram.keys():
- for sk in ssd.keys():
- for wk in warranty.keys():
- item = round((basePrice + ram[rk] + ssd[sk] + warranty[wk])*1.15, 3)
- print(rk + sk + wk + str(item))
- print("Count : 12")
- def public(basePrice):
- """Variation details in non-student prices (20% markup, GST inclusive)
- basePrice : GST exclusive, no markup price."""
- basePrice = int(basePrice) * 1.1
- print("Variation details in student prices (10% markup, GST inclusive)\n")
- for rk in ram.keys():
- for sk in ssd.keys():
- for wk in warranty.keys():
- item = round((basePrice + ram[rk] + ssd[sk] + warranty[wk])*1.15*1.1, 3)
- print(rk + sk + wk + str(item))
- print("Count : 12")
- mon23 = {"No monitor\t": 0, "Incl monitor\t": 70}
- lapbag = {"No laptop bag\t": 0, "Incl laptop bag\t": 9}
- ram = {"No RAM \t\t": 0, "Add 4GB RAM\t": 39, "Add 8GB RAM\t": 79}
- ssd = {"No SSD\t\t": 0, "Add SSD\t\t": 99}
- warranty = {"No warranty\t": 0, "Incl warranty\t": 99}
- help = """Use this script as a price checker.
- Classes
- ptlpc :\t\t Desktop PCs sold by PTL
- ptllp :\t\t Laptops sold by PTL
- dglpc :\t\t Desktop PCs sold by --
- dgllp :\t\t Laptops sold by --
- Functions
- .data :\t\t Data entry prices (student prices, 10% markup, GST inclusive)
- .detail :\t View all variations & prices (student prices, 10% markup, GST inclusive)
- .public :\t View all variation prices for non-students (20% markup, GST inclusive)
- You can view this any time by typing 'print(help)'.
- Note: This is case sensitive"""
- print(help)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement