Problem

The area of an arbitrary triangle can be computed using the formulawhere a, b, and c are t...

The area of an arbitrary triangle can be computed using the formula

where a, b, and c are the lengths of the sides, and s is the semiperimeter:

s = (a + b + c) / 2

Write a void function that uses five parameters: three value parameters that pro­vide the lengths of the edges and two reference parameters that compute the area and perimeter (not the semiperimeter). Make your function robust. Note that not all combinations of a, b, and c produce a triangle. Your function should produce correct results for legal data and reasonable results for illegal combinations.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 4