House Depot, a big-box hardware retailer, has contracted you to create an app to calculate paint prices.
The price of paint is determined by the following factors:
$19.99 per gallon.$24.99 per gallon.$32.99 per gallon.In addition if the customer wants computerized color-matching that incurs an additional fee of $4.99 per gallon.
Write a program to ask the user to select a paint quality: 'everyday', 'select' or 'premium', prompt for color matching, and then outputs the price per gallon of the paint.
Example Run 1:
Which paint quality do you require ['everyday', 'select', 'premium'] ?select
Do you require color matching [y/n] ?y
Total price of select paint with color matching is $29.98
Example Run 2:
Which paint quality do you require ['everyday', 'select', 'premium'] ?premium
Do you require color matching [y/n] ?n
Total price of premium paint without color matching is $32.99
In [1]:
# Step 2: Write code here
'everyday', 'select', or 'premium' what happens? Modify the program to print that is not a paint quality and then exit in those cases.Answer:
'y' or 'n' for color matching? Re-write the program to print you must enter y or n whenever you enter something other than those two values.Answer:
try...except in this example?Answer:
Answer:
Reflect upon your experience completing this assignment. This should be a personal narrative, in your own voice, and cite specifics relevant to the activity as to help the grader understand how you arrived at the code you submitted. Things to consider touching upon: Elaborate on the process itself. Did your original problem analysis work as designed? How many iterations did you go through before you arrived at the solution? Where did you struggle along the way and how did you overcome it? What did you learn from completing the assignment? What do you need to work on to get better? What was most valuable and least valuable about this exercise? Do you have any suggestions for improvements?
To make a good reflection, you should journal your thoughts, questions and comments while you complete the exercise.
Keep your response to between 100 and 250 words.
--== Write Your Reflection Below Here ==--
In [ ]: