Question

PLEASE HELP WITH CODE PYTHON BASE.!!!!!!!!Tasks: Complete the following programs noted below: Problem 1: A painting company has determined that for 112 square feet of

0 0
Add a comment Improve this question Transcribed image text
Answer #1

#function
def fun():
#reads the square feet input from user
n = int(input("Enter wall space in square feet: "))
#reads the paint price input from user
paint = int(input("Enter paint price per gallon: "))
#variables declaration
i = 1
c = 1
hoursoflabour = 0
labourchargers = 0
#runs the loop to keep track of hown many gallons paint is required
while(i):
#checks the conditon
if(n>112*i):
# c varaible keeps the count of how many gallons is requried
c+=1   
else:
#breaks the loop
break
i+=1
#calculates the paint chargers
paint = c*paint
#calculates the hours of labour is required
hoursoflabour = 8*c
#calculates the labour chargers
labourchargers = hoursoflabour*35
  
#prints the statement
print("Gallons of paint: ",c)
print("Hours of Labour: ",hoursoflabour)
print("Paint chargers: $",paint)
print("Labour chargers: $",hoursoflabour*35)
print("Total chargers: $",paint+labourchargers)
  
#main function   
def main():
#calling a function
fun()
# main function is called
main()

n = = 1 #function 2 def fun(): 3 #reads the square feet input from user 4 int(input(Enter wall space in square feet: )) 5 #33 print(Labour chargers: $, hoursoflabour*35) 34 print(Total chargers: $, paint+labourchargers) 35 36 #main function 37

OUTPUT

Enter wall space in square feet: 112 Enter paint price per gallon: 20 Gallons of paint: 1 Hours of Labour: 8 Paint chargers:

Add a comment
Know the answer?
Add Answer to:
PLEASE HELP WITH CODE PYTHON BASE.!!!!!!!! Tasks: Complete the following programs noted below: Problem 1: A...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Tasks: Complete the following programs noted below: Problem 1: A painting company has determined that for...

    Tasks: Complete the following programs noted below: Problem 1: A painting company has determined that for 112 square feet of wall space, one gallon of paint and eight hours of labor will be required. The company charges $35.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 paint per gallon. The program should display the following data: The use of functions is required....

  • in python A painting company has determined that for every 112 square feet of wall space,...

    in python 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 $35.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. The program should display the following data: The number of gallons of paint required The hours of labor...

  • This exercise requires designing a program which solves the problem described in the problem statement below....

    This exercise requires designing a program which solves the problem described in the problem statement below. Provide comments as necessary in your pseudo-code and the Java program. Your solution must include these components: Flowchart Pseudo-code Hierarchy Chart Program Coded Program Output Problem Statement A painting company has determined that to paint 115 square feet of wall space, the task will require one gallon of paint and 8 hours of labor. The company charges $20.00 per hour for labor. Design a...

  • A painting company has determined that to paint 115 square feet of wall space, the task...

    A painting company has determined that to paint 115 square feet of wall space, the task will require one gallon of paint and 8 hours of labor. The company charges $20.00 per hour for labor. Design a modular program that asks the user to enter the number of square feet of wall space to be painted and the price of paint per gallon. The program should then calculate and display the following data: The number of gallons of paint required...

  • A painting company has determined that for every 115 square feet of wall space, one gallon...

    A painting company has determined that for every 115 square feet of wall space, one gallon of paint and eight hours of labor will be required. The company charges $20.00 per hour for labor. Write a program that allows the user to enter the number of rooms to be painted and the price of the paint per gallon. It should ask for the square feet of wall space in each room. The program should have methods that return the following...

  • A painting company has determined that for every 112 square feet of wall space, one gallon...

    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 $35.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. Use a function (or multiple functions if you want) to calculate the following values - you also need to output...

  • Paint Job Estimator in Python and Raptor Psusedo

    Hello, I have seen this in Java and C++ but I am trying to learn it in Python ..any help on the code would be great..ThanksPaint job estimatorQuestion DetailsA painting company has determined that for every 115 square feet or wall space, one gallon of paint and eight hours of labor will be required. The company charges$20.00 per hour for labor . Write a program that allows the user to enter the number of rooms to be painted and the...

  • A painting company has determined that for every 110 square feet of wall space, one gallon...

    A painting company has determined that for every 110 square feet of wall space, one gallon of paint and eight hours of labor will be required. The company charges $25.00 per hour for labor. Write a modular program that allows the user to enter the number of rooms that are to be painted (different colors) and the price of the paint per gallon. It should also ask for the square feet of wall space in each room. Rooms and gallons...

  • I need help making a javascript program to do the following: A painting company has determined...

    I need help making a javascript program to do the following: 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 $35.00 per hour for labor and $15.00 for a gallon of paint. Write a function that takes in the number of square feet of wall space and displays the following data: The number of gallons of paint required The hours...

  • I need to write a paint job estimator program in python. I have most of it...

    I need to write a paint job estimator program in python. I have most of it down but i keep getting errors and I dont know how to fix it or what im doing worng specs: A painting company has determined that for every 350 square feet of wall space, one gallon of paint and six hours of labor are required. The company charges $62.25 per hour for labor. Write a program call paintjobestimator.py that asks the user to enter...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT