Computer Science, asked by nikkishaw312, 7 months ago

We want to estimate the cost of painting a
property.
Interior wall painting cost is 18 per square feet
and exterior wall painting cost is 12 per square
feet.
Take input as
1. Number of Interior Walls
2. Number of Exterior Walls
3. Surface Area of each Interior Wall in units of
square feet
4. Surface Area of each Exterior Wall in units of
square feet
If user enters zero as number of walls then skip
Surface area values as User may don't want to
paint that walls.
Calculate and display the total cost of painting the
property.

Answers

Answered by nagasrigraphka57
1

Answer:

int_walls=int(input())

ext_walls=int(input())

sur_int=[float(input())for _ in range(int_walls)]

sur_ext=[float(input())for _ in range(ext_walls)]

print("Total estimated cost:",((sum(sur_int)*18)+(sum(sur_ext)*12)))

Explanation:

program in python

Similar questions