Class 10th ICSE

Java Project 

Get Started Free

Volutpat diam ut venenatis tellus in metus. Gravida cum sociis natoque penatibus et magnis dis. Odio pellentesque diam volutpat commodo.

Design a class to overload a function area() as follows:
(a) double area(double a, double b, double c)-with three double arguments,
returns thehttps://techonespot.com/2022/12/design-a-class-to-overload-a-function-area-as-follows-a-double-areadouble-a-double-b-double-c-with-three-double-arguments-returns-the-area-of-a-scalene-triangle-using-the-formula-area/ area of a scalene triangle using the formula:
area=√𝐬(𝐬 − 𝐚)(𝐬 − 𝐛)(𝐬 − 𝐜) where s=(a+b+c)/2

(b) double area(int a, int b, int height)-with three integer arguments, returns the area of a trapezium using the formula: area=1/2*height(a +b)

(c) double area(double diagonal1,double diagonal2)-with two double arguments, returns the area of a rhombus using the formula: area=1/2*diagonal1*diagonal2

Fun & Easy to follow
Works on all devices
Your own Pace
Super Affordable

Popular Videos

Play Video

UX for Teams

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer

Play Video

SEO & Instagram

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer