HARDWARE SHOP CHECKOUT Your assignment is to create a Python program that handles the checkout process for Simon’s Hardw
Posted: Sun May 15, 2022 1:22 pm
HARDWARE SHOP CHECKOUT
Your assignment is to create a Python program that handles the
checkout process for Simon’s Hardware Shop. Your program should
first greet the user before asking them 1) whether they would like
to purchase each product and 2) if and only if they would like to
purchase a given product, how much they would like to purchase.
Finally, your program should output the total price so that the
user can check out.
To submit your assignment, verify your python code works, test
it thoroughly, and upload the .py file into Canvas for review.
Simon’s Hardware Shop has very limited inventory and sells three
products: wiring, light bulbs, and paint. To encourage his
customers to buy in bulk, Simon offers a discount to consumers who
buy in bulk. Simon’s prices are listed below:
Would you like to buy any light bulbs (yes/no)? no
Would you like to buy any paint (yes/no)? yes
How many cans of paint would you like to buy? 8
Your final total is 51.2 dollars.
Thanks for visiting!
Product Wiring = = Number purchased Less than 10 feet At least 10 but less than 20 feet 20 or more feet Fewer than 12 bulbs At least 12 but fewer than 24 bulbs 24 or more bulbs Fewer than 5 cans At least 5 but fewer than 10 cans 10 or more cans Price $3.00 per foot $2.80 per foot $2.60 per foot $1.00 each $0.95 each $0.92 each $5.00 each $4.90 each $4.80 each Example 8.5 feet = $25.50 15 feet = $42.00 25 feet = $65.00 2 bulbs = $2.00 15 bulbs = $14.25 30 bulbs = $27.60 3 cans = $15.00 8 cans = $39.20 12 cans = $57.60 Light bulbs - = Paint
Your assignment is to create a Python program that handles the
checkout process for Simon’s Hardware Shop. Your program should
first greet the user before asking them 1) whether they would like
to purchase each product and 2) if and only if they would like to
purchase a given product, how much they would like to purchase.
Finally, your program should output the total price so that the
user can check out.
To submit your assignment, verify your python code works, test
it thoroughly, and upload the .py file into Canvas for review.
Simon’s Hardware Shop has very limited inventory and sells three
products: wiring, light bulbs, and paint. To encourage his
customers to buy in bulk, Simon offers a discount to consumers who
buy in bulk. Simon’s prices are listed below:
Would you like to buy any light bulbs (yes/no)? no
Would you like to buy any paint (yes/no)? yes
How many cans of paint would you like to buy? 8
Your final total is 51.2 dollars.
Thanks for visiting!
Product Wiring = = Number purchased Less than 10 feet At least 10 but less than 20 feet 20 or more feet Fewer than 12 bulbs At least 12 but fewer than 24 bulbs 24 or more bulbs Fewer than 5 cans At least 5 but fewer than 10 cans 10 or more cans Price $3.00 per foot $2.80 per foot $2.60 per foot $1.00 each $0.95 each $0.92 each $5.00 each $4.90 each $4.80 each Example 8.5 feet = $25.50 15 feet = $42.00 25 feet = $65.00 2 bulbs = $2.00 15 bulbs = $14.25 30 bulbs = $27.60 3 cans = $15.00 8 cans = $39.20 12 cans = $57.60 Light bulbs - = Paint