Answer:wall = int(input("Enter the length of the wall in square feet: "))
paint_price = float(input("Enter the price of an paint bucket: "))
def gallons(sqft):
return round(sqft/112, 2)
def labour():
return gallons(wall) * 8
def paint_cost():
return paint_price * gallons(wall)
def labour_charge():
return labour() * 52.00
def total():
return paint_cost() + labour_charge()
print(f"Number of Gallons of Paint Required: {gallons(wall)}")
print(f"The hours of lab required: {labour()}hours")
print(f"The cost of paint: ${paint_cost()}")
print(f"The labour charges: ${labour_charge()}")
print(f"The Total Cost of the Job: ${round(total(), 2)}")
Explanation:
The python program prompts the user for input of the length of a wall in square feet and the price of a gallon of paint. Five functions, gallons(), labour(), paint_cost(), labour_charge() and total() are used to calculate the total cost of the job based on the number of paint and the labour charges.
Answer:
a[0]=2*a[a.length-1];
Explanation:
In the following statement, we initialize a new value to the integer data type array variable 'a' by passing the index value 0 with the variable inside the square brackets [] because the array indexing starts with 0, so the array indexing of the first element is 0 and then initialize the value that is equal to the twice of that element which is in the last.
You basically multiply 2 by 101 Nd 3 by 99 then but put that equation in parentheses then put the 200 on the outside of the parentheses (2•101-3•99)200
Answer:
lack of computer, lack of quality software, lack of time, lack of technical programs and lack of teachers