Question: C++ please 4.11 LAB: Area of a triangle Using Heroris formula, you can calculate the area of a triargle if you know the lengths of
C++ please
4.11 LAB: Area of a triangle Using Heroris formula, you can calculate the area of a triargle if you know the lengths of all three sides. Given the lenqth of each side of a triangle as input calculate the area of the trangle using Hereris formula as follows: 1. s= half of the triangle's perimeter 2. aroa = the square root of s(sa)(zb)(sc), where a,b, and c are each sides of the triangle. Use the math function sqrt] for calculating the square root. Output each floating-point value with three digits after the dezimal point, which can be achieved by executing cout \& fixed \& setprecision(3); once before all olter cout stalements. Ex: If the incout for a, b, and c is: 3.04.05.0 the output is Thearenofthezriangleiz:6.000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
