Question: Write a main method to prompt the user for three numbers (doubles) that represent the side lengths of a triangle. Calculate the area of the

Write a main method to prompt the user for three numbers (doubles) that represent the side lengths of a triangle. Calculate the area of the triangle using Math.sqrt (). Print the area to three decimal places using DecimalFormat. s-half the triangle's perimeter area the square root of s (s-a) (s-b) (s-c) Sample Output Enter Side A: 3 Enter Side B:3 Enter Side C: 1 The area of the triangle is: 1.479 LAB ACTIVITY 5.20.1: duringLab: Area of a Triangle 0/3 Main.java Load default template... 1 public class Main { 2 public static void main(String[] args) /* Type your code here. */
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
