Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

pls help solve in java show work and answer in IDE image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions