Question: 3 ) Extend by prompting the user for a color they want to paint the walls. Calculate and output the total cost of the paint
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 roundprice Hint: Use a dictionary to associate each paint color with its respective cost. Red paint costs $ per gallon can, blue paint costs $ per gallon can, and green paint costs $ per gallon can.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
