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 b,c,d,z,t and area.
Prompt the user for three sides of a triangle.
Read the user input into variables b, c and d.
Set z to the sum of b,c and d all divided by 2.
Set t to the product of z,z-b,z-c and z-d
Set area to the square root of t.(This is the area of the triangle with sides b,c an d.)
Output the area of triangle formatted to six digits of precision after the decimal point.
(You may assume that the values for b,c and d represent the possible side of a triangle, so z-b,z-c and z-d 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 1
Please enter values for the three sides of a triangle: 345
The area of the triangle is 6.000000.
 Implement a complete program that gets three positive real numbers b,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!