We’ve decided to pursue the dream of small-business ownership and open up a furniture store called Lovely Loveseats for Neat Suites on Fleet Street. With our newfound knowledge of Python programming, we’re going to build a system to help speed up the process of creating receipts for your customers.
In this project, we will be storing the names and prices of a furniture store’s catalog in variables. You will then process the total price and item list of customers, printing them to the output terminal.
Please note: Projects do not run tests against your code. This experience is more open to your interpretation and gives you the freedom to explore. Remember that all variables must be declared before they are referenced in your code.
Create a variable called lovely_loveseat_description and assign to it the following string:
Lovely Loveseat. Tufted polyester blend on wood. 32 inches high x 40 inches wide x 30 inches deep. Red or white.
Create a variable lovely_loveseat_price and set it equal to 254.00.
Create a variable called stylish_settee_description and assign to it the following string:
Stylish Settee. Faux leather on birch. 29.50 inches high x 54.75 inches wide x 28 inches deep. Black.
Create a variable stylish_settee_price and assign it the value of 180.50.
Create a new variable called luxurious_lamp_description and assign it the following:
Luxurious Lamp. Glass and iron. 36 inches tall. Brown with cream shade.
Create a variable called luxurious_lamp_price and set it equal to 52.15.
Let’s store that in a variable as well.
Define the variable sales_tax and set it equal to .088. That’s 8.8%.
Let’s keep a running tally of their expenses by defining a variable called customer_one_total. Since they haven’t purchased anything yet, let’s set that variable equal to 0 for now.
Create a variable called customer_one_itemization and set that equal to the empty string "". We’ll tack on the descriptions to this as they make their purchases.
10. Our customer has decided they are going to purchase our Lovely Loveseat! Add the price to customer_one_total
Add the description of the Lovely Loveseat to customer_one_itemization.
Let’s add the price to the customer’s total.
13. Let’s keep the itemization up-to-date and add the description of the Luxurious Lamp to our itemization
Create a variable called customer_one_tax and set it equal to customer_one_total times sales_tax.
Hint:
Update the variable customer_one_total by adding customer_one_tax to it.
Begin by printing out the heading for their itemization. Print the phrase "Customer One Items:".