-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPaint_Job_Estimator.py
More file actions
44 lines (36 loc) · 1.48 KB
/
Paint_Job_Estimator.py
File metadata and controls
44 lines (36 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Paint Job Estimater Program
# This program will allow the user to enter the squar foot for the space
# that should be painted and determaine, how many hours of labors and
# the paint gallons required.
# The company charges 35 $ per hour for labor.
# 1. For every 112 ft of wall space, 1 gallon of paint and 8 hours
# of labor will be required.
# 2. The program should display the following
# 1. The number of gallons of paint required
# 2. The hours of labor required
# 3. The cost of the paint
# 4. The labor charges
# 5. The total cost of the paint job
def gallons ( value ):
square_feet = 112
result = 0
laber_hours = 8
total = 0
hours = 1
charges = 1
# ask the user for the cost of paint that required
paint_cost = int(input('Please enter the cost of paint: '))
for i in range(1 , value, square_feet):
total += 1
hours = total * laber_hours
charges = hours * 35
result = charges + paint_cost
print('the number of gallons required is ', format(total, ',.2f'))
print('The total number of hours required is : ', hours)
print('The labor charges is : ', charges)
print('The total cost of paint is: ', result)
def main():
# ask the user to enter the square feet of a wall space
wall_space = int(input('Please enter the square feet of a wall: '))
display = gallons(wall_space)
main()