We want to estimate the cost of painting a property interior wall painting cost is rs 18per square feet and exterior wall painting cost 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 unit of square feet
Need code in C, C++ , java , python
Answers
Answered by
0
Answer:
int NumberOfInnerWalls, NumberOfOuterWalls;
float SqFt
Answered by
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