Question: pls help solve in java show work and answer in IDE 21.9 LAB: Area of a triangle Using Heton's formula, you can calculate the area

21.9 LAB: Area of a triangle Using Heton's formula, you can calculate the area of a triangle if you know the lengths of all three sides Given the length of each side of a. triangle as input, caiculate the area of the triangle using Heron's formula as follows: 1. s - half of the triangles perimeter 2. area s the square root of s(sa)(sb)(nc), where a, bi and c are each sides of the trangle Usethe Math sqrto method for calculating the square root. Output the flosting-pont value of the area with three digits after the decimal point, which can be acheved as follows Syetem.out.printf("The aren of the trianglo in 6.3ftn ", yourvalid) ; Ex. If the input for a,b, and c is 3.085.0.5.9 the output it: The ared of the triangie int b.000 LabProgram.java Load defeult templafi. import jova.utik. Scanner; public class LabProgram if pubtic static void main(String ] args) if - type your code here. %
Step by Step Solution
There are 3 Steps involved in it
To calculate the area of a triangle using Herons formula in Java you need to follow these steps Impo... View full answer
Get step-by-step solutions from verified subject matter experts
