Answer to Question #299797 in Python for adilah

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.



1
Expert's answer
2022-02-19T04:49:29-0500
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)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS