![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 24.04.2020 16:51 dave9811
(1) Prompt the user to input a wall's height and width. Calculate and output the wall's area (integer). (Submit for 2 points). Enter wall height (feet): 12 Enter wall width (feet): 15 Wall area: 180 square feet
(2) Extend to also calculate and output the amount of paint in gallons needed to paint the wall (floating point). Assume a gallon of paint covers 350 square feet. Store this value in a variable. Output the amount of paint needed using the %f conversion specifier. (Submit for 2 points, so 4 points total). Enter wall height (feet): 12 Enter wall width (feet): 15 Wall area: 180 square feet Paint needed: 0.514286 gallons
(3) Extend to also calculate and output the number of 1 gallon cans needed to paint the wall. Hint: Use a math function to round up to the nearest gallon. (Submit for 2 points, so 6 points total). Enter wall height (feet): 12 Enter wall width (feet): 15 Wall area: 180 square feet Paint needed: 0.514286 gallons Cans needed: 1 can(s)
(4) 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. (Submit for 2 points, so 8 points total).
Enter wall height (feet): 12 Enter wall width (feet): 15 Wall area: 180 square feet Paint needed: 0.514286 gallons Cans needed: 1 can(s) Choose a color to paint the wall: red Cost of purchasing red paint: $35
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 00:10
How does access indicates that a filter has been applied to a specific column
Answers: 1
![question](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 15:00
Who is the first president to use social media as part of his campaign strategy
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 15:30
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
You know the right answer?
(1) Prompt the user to input a wall's height and width. Calculate and output the wall's area (intege...
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 19.03.2021 19:10
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
History, 19.03.2021 19:10
![question](/tpl/images/cats/mat.png)
Mathematics, 19.03.2021 19:10
![question](/tpl/images/cats/himiya.png)
Chemistry, 19.03.2021 19:10
![question](/tpl/images/cats/istoriya.png)
History, 19.03.2021 19:10
![question](/tpl/images/cats/mat.png)
Mathematics, 19.03.2021 19:10
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 19.03.2021 19:10
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 19.03.2021 19:10
![question](/tpl/images/cats/mat.png)
Mathematics, 19.03.2021 19:10
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/health.png)
Health, 19.03.2021 19:10
![question](/tpl/images/cats/mat.png)
Mathematics, 19.03.2021 19:10
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 19.03.2021 19:10