Question: Implement a complete program that gets three positive real numbers b , c and d from the user. The numbers represent the sides of a
Implement a complete program that gets three positive real numbers b c and d from the user. The numbers represent the sides of a triangle. The
program then computes and outputs the area of a triangle with those sides. Follow the exact steps below to ensure you get credit. Copy paste your
completed program for credit.
Declare six variables of type double with the names and area.
Prompt the user for three sides of a triangle.
Read the user input into variables b c and d
Set to the sum of and all divided by
Set to the product of and
Set area to the square root of This is the area of the triangle with sides an d
Output the area of triangle formatted to six digits of precision after the decimal point.
You may assume that the values for and represent the possible side of a triangle, so and will all be positive.
COPY PASTE YOUR COMPLETE PROGRAM INTO THE TEXT AREA.
Here are three sample runs to show how to format the prompts and the output. Your output should match exactly given the same inputs.
SAMPLE
Please enter values for the three sides of a triangle:
The area of the triangle is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
