subject
Computers and Technology, 01.02.2021 22:10 SMNS625

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. 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. Hint: to account for the paint color, you can either use an "if... elif . else sequence to test for equality of the input color string with each of the three allowed strings red', blue, or green, or else use a dictionary like the one below to associate each paint color with its respective cost. (Submit for 3 points, including one hidden test case, so 8 points total) paintcolors = {
red': 35,
blue': 25,
green': 23
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
What is the foundation for proper monitoring, load balancing and routing in distributed systems
Answers: 3
question
Computers and Technology, 23.06.2019 02:00
As with any small island country, cuba has fewer natural resources than countries such as brazil. this affects their economy in that cuba a) exports only manufactured products. b) exports more products than it imports.. c) must import more products than it exports. d) has imposed trade barriers against the united states.
Answers: 3
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
You know the right answer?
Extend by prompting the user for a color they want to paint the walls. Calculate and output the tota...
Questions
question
Mathematics, 09.12.2020 20:00
question
Computers and Technology, 09.12.2020 20:00
question
Mathematics, 09.12.2020 20:00
question
Health, 09.12.2020 20:00
question
Mathematics, 09.12.2020 20:00
question
Mathematics, 09.12.2020 20:00
question
Mathematics, 09.12.2020 20:00
question
Mathematics, 09.12.2020 20:00
Questions on the website: 13722363