1.

URGENT!!Write a program in java by using function overloading technique that computes and displays thearea of a parallelogram, a rhombus and a trapezium.Formula:Area of a parallelogram = b*hArea of a rhombus = 1/2*d1*d2 [where, d1 and d2 are the diagonals]Area of a trapezium = 1/2*(a+b)*h [where a and b are the parallel sides,h = perpendicular distance between the parallel sides]Write the main method to invoke all the above methods.​

Answer»

Explanation:

URGENT!!

WRITE a program in java by using FUNCTION overloading technique that computes and DISPLAYS the

area of a parallelogram, a rhombus and a trapezium.

Formula:

Area of a parallelogram = b*h

Area of a rhombus = 1/2*d1*d2 [where, d1 and d2 are the diagonals]

Area of a trapezium = 1/2*(a+b)*h [where a and b are the parallel sides,

h = perpendicular distance between the parallel sides]

Write the MAIN method to invoke all the above methods.



Discussion

No Comment Found