Question

In: Computer Science

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. Design a modular 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 T

he total cost of the paint job

Using Python

Solutions

Expert Solution

main.py

wallSize = int(input("Enter the size of the wall space to be painted(in sq ft): "))

price = int(input("Enter the price of the paint(per gallon): $"))

numOfGallons = wallSize / 115

numOfHours = numOfGallons * 8

costOfPaint = price * numOfGallons

laborCharge = numOfHours * 20

totalCost = costOfPaint + laborCharge

print("Number of Gallons of paint: ",numOfGallons)

print("Hours of labor required: ",numOfHours)

print("Cost of the paint: $",costOfPaint)

print("Labor charges: $",laborCharge)

print("Total cost of paint job: $",totalCost)

Indentation:

Output:


Related Solutions

An income property has 5000 square feet of leasable space, and rents for $8.00 per square...
An income property has 5000 square feet of leasable space, and rents for $8.00 per square foot per year. Vacancy and credit loss are estimated at 4% and operating expenses at 38% of potential gross income. Lenders require a 1.2 Debt Coverage Ratio. Mortgage is available at terms of 25 years, at 15%, payable annually. The investor requires a 14% rate of return on the projects before tax equity cash flow. What would be your maximum offering price based on...
. A merchant has 9000 square feet of floor space for storing units of products 1...
. A merchant has 9000 square feet of floor space for storing units of products 1 and 2. To gain the advantage of a good price he must purchase his stock now. A unit of product 1 costs the merchant $6 and requires 2 square feet of space, while a unit of product 2 costs the merchant $3 and requires 3 square feet of space. The merchant must stock at least 500 units of product 1. He expects to make...
Wray Company rents 10,000 square feet of store space for $49,000 per year. The amount of...
Wray Company rents 10,000 square feet of store space for $49,000 per year. The amount of square footage by department is as follows: Department A: 1,600 sq. ft. Department B: 2,200 sq. ft. Department C: 3,800 sq. ft. Department D: 2,400 sq. ft. Allocate the annual rent expense among the four departments on the basis of relative square feet of floor space occupied: Annual Rent Expense Department A $ ??????? Department B ??????? Department C ?????? Department D ?????? Total...
The data relating the square feet for the living space and the selling price of 12...
The data relating the square feet for the living space and the selling price of 12 residential properties given in example 3.5 are reproduced here. X Y 1360 178.5 1940 275.7 1750 239.5 1550 229.8 1790 195.6 1750 210.3 2230 360.5 1600 205.2 1450 188.6 1870 265.7 2210 325.3 1480 168.8 What is the y-intercept of the best fitting line? 1. -106.6 2. 0.196 3. -0.196 4. 106.6
The data relating the square feet for the living space and the selling price of 12...
The data relating the square feet for the living space and the selling price of 12 residential properties given in example 3.5 are reproduced here. X Y 1360 178.5 1940 275.7 1750 239.5 1550 229.8 1790 195.6 1750 210.3 2230 360.5 1600 205.2 1450 188.6 1870 265.7 2210 325.3 1480 168.8 What is the y-intercept of the best fitting line? 1. -106.6 2. 0.196 3. -0.196 4. 106.6
Problem 1 14.59 Is the number of square feet of living space a good predictor of...
Problem 1 14.59 Is the number of square feet of living space a good predictor of a house’s selling price? The following data show the square footage and selling price for fifteen houses in Winston Salem, North Carolina (Zillow.com, April 5, 2015). Size (1000s sq. ft) Selling Price ($1000s) 1.26 117.5 3.02 299.9 1.99 139.0 0.91 45.6 1.87 129.9 2.63 274.9 2.60 259.9 2.27 177.0 2.30 175.0 2.08 189.9 1.12 95.0 1.38 82.1 1.80 169.0 1.57 96.5 1.45 114.9 What...
A tenant would like to lease 4,000 square feet of space over the next ten years,...
A tenant would like to lease 4,000 square feet of space over the next ten years, and is evaluating the following alternatives: 1: Gross lease with base rent of $16 psf each year.    2: Gross lease with base rent of $15 psf with rent rising by $0.50 psf every other year; the first year of adjustment is year 3. 3: Absolutely net lease with base rent of $12 psf, increasing to $14 psf starting in year 6.         expenses...
A subject property has 2,800 square feet, 4 bedrooms, 3 baths, a 20,000 square foot lot,...
A subject property has 2,800 square feet, 4 bedrooms, 3 baths, a 20,000 square foot lot, brick exterior, and is in “good” condition. The proposed sale price is $185,000. A comparable property sold for $175,000 three months ago.It has 3 bedrooms, 3.5 baths, 2,500 square feet, a 25,000 square foot lot, frame exterior, and is in “excellent” condition. The following adjustments are applicable: House size:$50 per square foot; Lot size:$1.25 per square foot; Bedrooms:$4,000 each; Half bathroom:$750 each; Brick exterior:$4,500...
Gallatin Carpet Cleaning-the company has always charged a flat fee per hundred square feet of carpet...
Gallatin Carpet Cleaning-the company has always charged a flat fee per hundred square feet of carpet cleaned. The current fee is $23.50 per hundred square feet. Activity Cost Pool Activity Measure Activity for the Year Cleaning carpets Square feet cleaned (00s) 10,000 hundred square feet Travel to jobs Miles driven 300,500 miles Job support Number of jobs 1,800 jobs The total cost of operating the company for the year is $370,000 Wages $ 148,000 Cleaning supplies 28,000 Cleaning equipment depreciation...
A rectangular box with a square base has a volume of 4 cubic feet. The material...
A rectangular box with a square base has a volume of 4 cubic feet. The material for the bottom of the box costs $3 per square foot, the top costs $2 per square foot, and the four sides cost $5 per square foot. (a) If x is the side length of the square base, and y is the height of the box, find the total cost of the box as a function of one variable. (b) Find the critical number...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT