Add Lovely Loveseat Reciept project.
This commit is contained in:
parent
0dcb52765f
commit
6f6bd450f5
|
@ -0,0 +1,57 @@
|
||||||
|
# Product descriptions and prices
|
||||||
|
|
||||||
|
# Prices and Descriptions
|
||||||
|
|
||||||
|
lovely_loveseat_description = """Lovely Loveseat.\n\nTufted polyester blend on wood. 32 inches high x 40 inches wide x 30 inches deep. Red or white."""
|
||||||
|
lovely_loveseat_price = 254.00
|
||||||
|
|
||||||
|
stylish_settee_description = """Stylish Settee.\n\nFaux leather on birch. 29.50 inches high x 54.75 inches wide x 28 inches deep. Black."""
|
||||||
|
stylish_settee_price = 180.50
|
||||||
|
|
||||||
|
luxurious_lamp_description = """Luxurious Lamp.\n\nGlass and iron. 36 inches tall. Brown with cream shade."""
|
||||||
|
luxurious_lamp_price = 52.15
|
||||||
|
|
||||||
|
sales_tax = .088
|
||||||
|
|
||||||
|
# Customer One
|
||||||
|
|
||||||
|
customer_one_total = 0
|
||||||
|
customer_one_itemization = ""
|
||||||
|
|
||||||
|
customer_one_total += lovely_loveseat_price
|
||||||
|
customer_one_itemization += lovely_loveseat_description
|
||||||
|
customer_one_total += luxurious_lamp_price
|
||||||
|
customer_one_itemization += "\n\n" + luxurious_lamp_description
|
||||||
|
|
||||||
|
customer_one_tax = customer_one_total * sales_tax
|
||||||
|
customer_one_total += customer_one_tax
|
||||||
|
|
||||||
|
print("Customer One Items:\n")
|
||||||
|
print(customer_one_itemization)
|
||||||
|
|
||||||
|
print("\nCustomer One Total:\n")
|
||||||
|
|
||||||
|
customer_one_total = round(customer_one_total, 2)
|
||||||
|
print("$" + str(customer_one_total))
|
||||||
|
print("\n\n\n")
|
||||||
|
# Customer Two
|
||||||
|
|
||||||
|
customer_two_total = 0
|
||||||
|
customer_two_itemization = ""
|
||||||
|
|
||||||
|
customer_two_total += stylish_settee_price
|
||||||
|
customer_two_itemization += stylish_settee_description
|
||||||
|
|
||||||
|
customer_two_total += luxurious_lamp_price
|
||||||
|
customer_two_itemization += luxurious_lamp_description
|
||||||
|
|
||||||
|
customer_two_tax = customer_two_total * sales_tax
|
||||||
|
customer_two_total += customer_two_tax
|
||||||
|
|
||||||
|
print("Customer Two Items:\n")
|
||||||
|
print(customer_two_itemization)
|
||||||
|
|
||||||
|
print("\nCustomer Two Total:\n")
|
||||||
|
|
||||||
|
customer_two_total = round(customer_two_total, 2)
|
||||||
|
print("$" + str(customer_two_total))
|
Loading…
Reference in New Issue