Concept explainers
Hi need help with this problem. The
The Algorithm of the code:-
1. Read the wall height, width, and cost of a paint can and store the values in variables.
2. Calculate the wall area by multiplying the height and width, and storing the value in a variable.
3. Calculate the amount of paint needed by dividing the wall area by 350 and store the value in a variable.
4. Calculate the number of cans needed by rounding up the amount of paint needed and store the value in a variable.
5. Calculate the paint cost by multiplying the cost of a paint can by the number of cans needed, and store the value in a variable.
6. Calculate the sales tax by multiplying the paint cost by 0.07, and store the value in a variable.
7. Calculate the total cost by adding the paint cost and sales tax, and store the value in a variable.
8. Output the wall area, paint needed, cans needed, paint cost, sales tax, and total cost.
Trending nowThis is a popular solution!
Step by stepSolved in 5 steps with 2 images
- I need help with this problem. I know how to solve it to get the answers, but if I put them on the same page, either both of them are incorrect, or only one is correct and the other is incorrect. You are given the number of days that you have been driving, and you will write a Python script to work out the equivalent number of years and weeks. Aim Write a script that takes user input as days and converts the days into years, weeks, and days, and then prints them out. We can ignore leap years. The aim of this activity is to use different arithmetic operators to split days into years, weeks, and days. Steps for Completion Go to your main.py file. On the first line, ask the user how many days they've been driving for and declare the user input. It's an integer, so cast the string. Then calculate the number of years in that set of days. Next, convert the remaining days that weren't converted to years into weeks. Then, get any remaining days that weren't converted to weeks.…arrow_forwardHello help me with these Python homeworks, please.arrow_forwardI am stuck trying to create a program in PYTHON that calculates the coins needed to make change for a specified US monetary amount.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education