Question: use c++ please i want the code 7. (Numerical) Heron's formula for the area, A, of a triangle with sides of length a, b, and
7. (Numerical) Heron's formula for the area, A, of a triangle with sides of length a, b, and is A - v[sts - a)(s - b)(s - c)] where (a + b + c) Write, test, and execute a function that accepts the values of a, b, and c as parameters from a calling function, and then calculates the values of sand /sfs-alfs - b)'s - d)]. If this quantity is positive, the function calculates A. If the quantity is negative, a, b, and do not form a triangle, and the function should set A -1. The value of A should be returned by the function. 1111 Test Data - ps8 set_1: a = 3 b = 4 c = 5 set 2: a = 3 b = 7 C = 3 wwer w
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
