void GetData (double & mass, double & at, double & cP, double & pre, double & post, double & vaf)
{
cout << "Please input the mass of the animal: ";
cin >> mass;
cout << "Please input the ambient temperature: ";
cin >> at;
cout << "Please input the chamber pressure: ";
cin >> cP;
cout << "Please input concentration of oxygen in ambient air (pre-animal): ";
cin >> pre;
cout << "Please input concentration of oxygen in ambient air (post-animal): ";
cin >> post;
cout << "Please input the rate of oxygen: ";
cin >> vaf;
}
//This is suppose to be a void function but i dont understand how that will work?
double CalcVoc (double vaf, double pre, double post)
{
double voc = vaf * (pre - post) / (1 - post);
return voc;
}
void PrintMetPow (double mass, double at, double cp, double pre, double post, double vaf, double mp)
{
cout << "The mass of this animal is " << mass << " grams" << endl;
cout << "The ambient temperature is " << at << " degrees" << endl;
cout << "The chamber pressure is " << cp << " mmHG" << endl;
cout << "The concentration of ambient air (pre-animal) is: " << pre << endl;
cout << "The concentration of ambient air (post-animal) is: " << post << endl;
cout << "The rate of oxygen is: " << vaf << endl;
cout << "The metabolic power for this mammal or reptile is: " << mp << endl;
}
for CalcVoc it is suppose to be a void function. I used a value returning function, i dont understand how you would get the numbers for voc using a void function? thanks in advance!!