Question: Wall area: 1 8 0 square feet Paint needed: 0 . 5 1 gallons ( 3 ) Extend by prompting the user for a color

Wall area: 180 square feet Paint needed: 0.51 gallons
(3) Extend by prompting the user for a color they want to paint the walls. Calculate and output the total cost of the paint cans depending on which color is chosen. Round the result to two decimal places with round(*price*,2). Hint: Use a dictionary to associate each paint color with its respective cost. Red paint costs $35 per gallon can, blue paint costs $25 per gallon can, and green paint costs $23 per gallon can.
Enter wall height (feet): 12 Enter wall width (feet): 15 Wall area: 180 square feet Paint needed: 0.51 gallons {'red': 35, 'blue': 25, 'green': 23} Choose a color to paint the wall: Cost of purchasing red paint: $18

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!