👤

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 required
The cost of the paint
The labor charges
The total cost of the paint job
Finally it returns the total cost to the calling program
Write the main() function that prompts the user to enter area of wall space to be painted and the price of a paint gallon. The main function then calls compute_cost() function to compute the cost and prints the total cos.
Make sure it is in python program

Answer :

A method of notation for creating computer programmes is known as a programming language. The majority of programming languages are formal text-based languages.

What is programming ?

  • Writing code to support certain activities in a computer, application, or software programme and giving them instructions on how to do is known as computer programming.
  • Orthogonality or simplicity, available control structures, data types, and data structures, syntactic design, support for abstraction, expressiveness, type equivalence, strong versus weak type checking, exception handling, and limited aliasing are among the characteristics of a programming language

def main():

   # Ask for the square footage of wall space to be painted.

   square_footage = input('Enter the number of square feet to be painted: ')  

   price_gallon = input('Enter the price of the paint per gallon: ')

   estimate(square_footage, price_gallon)

def estimate(square_footage, price_gallon):

   num_gallons = square_footage/115

   hours_labor = num_gallons * 8

   total_price_gallon = num_gallons * price_gallon

   total_labor = hours_labor * 20

   final_total = total_price_gallon + total_labor

   print 'The total estimated price for this paint job is

Go Teaching: Other Questions

© 2024 goteaching.tech. All rights reserved.

, final_total

main()

To learn more about programming language refer :

brainly.com/question/16936315

#SPJ4

Go Teaching: Other Questions