Answered step by step
Verified Expert Solution
Question
1 Approved Answer
NOTE : Is learning Python programming (currently on chapter 5) with the following textbook: Book Starting Out With Python 3rd Edition by Gaddis
NOTE: Is learning "Python programming" (currently on chapter 5) with the following textbook:
Book "Starting Out With Python" 3rd Edition by Gaddis
1. A painting company has determined that for every 112 square feet of wall space, one gallon of paint and eight hours of labor will be required. The company charges S35.00 per hour for labor. Write a program that asks the user to enter the square feet of wall space to be painted and the price of the paint per gallon. Do not let the user enter negative numbers. Use a function named get number that takes one parameter, a string. That string should contain the prompt that you will use for input. get _number should ask the user for a number until the user enters a non-negative number (so 0 is ok), then return the valid number as a float. Feel free to use any other functions you wish The program should display the following data: The number of gallons of paint required (rounded up) The hours of labor required (rounded up) . The cost of the paint The labor charges The total cost of the paint job Remember, to round up, you can use math.ceil(num) /workspace/HW/ $ python number01.py Enter the number of square feet to be painted: 500 How much does the paint cost? 25.64 This job requires: 5 gallons of paint 36 hours of labor Costs for the iobStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started