This is what i have so far guys,

```
//LAB 6
#include <iostream>
#include <cmath>
using namespace std;
double getSides ()
{
double sideA, sideB, sideC;
cout << "Enter three sides: " << endl;
cin >> sideA >> sideB >> sideC;
}
bool formTriTest (double sideA, double sideB, double sideC)
{
if (sideA + sideB > sideC
|| sideB+ sideC > sideA
|| sideA + sideC > sideB)
{
return false;
}
}
double perimeter (double sideA, double sideB, double sideC)
{
double pAns;
pAns = sideA + sideB + sideC;
return pAns;
}
double triArea (double sideA, double sideB, double sideC, double S)
{
S = (sideA + sideB + sideC) / 2.0;
double area;
area = sqrt (S* (S - sideA )*(S - sideB) *(S - sideC));
return area;
}
int main()
{
cout << getSides();
}
```

The program in its final goal state, must consist of at least three functions:

(a) One function to test if a, b, c can actually form a triangle, and the function’s return type is “bool”

(b) One function to find the perimeter of a triangle.

(c) One function to find the area of a triangle.

Limitations :

I read in a few sets of triangles until the program comes across a set that consists a zero in any of the values, then the program stops.

I wont ask anyone to write my program I realize that.

What I require for now is help on passing the values of the sideA sideB and sideC inputs into the other functions for calculation. How do I accomplish this?