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, 21.06.2019 22:50
Explain why it is reasonable to assume that receiving 3 duplicate acks in tcp is an indication that the network is not currently congested.
Answers: 1
question
Computers and Technology, 22.06.2019 14:00
Which database model is best used for data warehouse and data mining
Answers: 3
question
Computers and Technology, 22.06.2019 21:00
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Research data that is presented using descriptive language is said to be
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
Chemistry, 10.04.2021 03:20
question
Mathematics, 10.04.2021 03:20
question
Biology, 10.04.2021 03:20
question
English, 10.04.2021 03:20
question
Mathematics, 10.04.2021 03:20
Questions on the website: 13722367