Answered step by step
Verified Expert Solution
Link Copied!

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 Gaddisimage text in transcribed

image text in transcribed

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 iob

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions

Question

Q.1. Taxonomic classification of peafowl, Tiger and cow ?

Answered: 1 week ago

Question

Q .1. Different ways of testing the present adulterants ?

Answered: 1 week ago

Question

Q.1. Health issues caused by adulteration data ?

Answered: 1 week ago

Question

1. Traditional and modern methods of preserving food Articles ?

Answered: 1 week ago