Question
IN JAVA PLEASE Double method returns the sum of the areas of 3 individual triangles. The base/height of each triangle are equal and are given.
IN JAVA PLEASE
Double method returns the sum of the areas of 3 individual triangles. The base/height of each triangle are equal and are given. (negitives can represent location as well as dimention) * The formula for triangle area is (b*h) / 2 and in our case, b = h = num.
threeTriangles(1.0,2.0,3.0) returns 7.0 threeTriangles(2.5,1.0,3.2) returns 8.745 threeTriangles(-1.0,-9.0,-7.0) returns 65.5 threeTriangles(0,0,8.0) returns 32.0 threeTriangles(1.0,1.0,1.0) returns 1.5
@param num1 double @param num2 double @param num3 double @return the sum of the area of all three triangles.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started