Question #299797

Develop a program logic that performs arithmetic functions which design to prompt values

for the variables from users. Both variables will be passed to methods named area() and

perimeter() for a trapezium. Compute the values of two arguments, respectively so each

method should perform the appropriate computation and display the results. Present all

requirements to be prepared to solve this problem.



Expert's answer

def area(a,b,h):
    area = ((a+b)/2)*h
    print(area)

def perimeter(a, b, c, d):
    perimeter = a+b+c+d
    print(perimeter)
LATEST TUTORIALS
APPROVED BY CLIENTS