Maybe i'm just missing the point here. i was trying to guide you towards a solution which used the function displayResult()precisely as described in this post: http://www.cplusplus.com/forum/beginner/136724/#msg727915
where it says, quote:
"A void function should be created for displaying the results. This function will take two parameters: a string with the name of the calculation (like "maximum heart rate") and the value of that calculation. The display should be something like: "Your maximum heart rate is 188."
The latest code doesn't even attempt that, it has discarded one of the key requirements, "a string with the name of the calculation" and instead substituted an integer, and then don't even seem to call that function.
Before I waste any more of both your and my time on this, could you confirm whether or not your program should follow the requirement which I quoted. Please accept my apologies if I've been heading in the wrong direction (for whatever reason).