Thank you!I think I got confused do to the wording of the assignment. I am still a little confused as the assignment my professor gave me said the return type of the function should be void.
Here is the assignment:
"Your other task is to add a new function called prntSurfArea that accepts
the base area and side area values (i.e., these are the parameters) and calculates
and prints out the total surface area of the right cylinder inside this function.
Since this function does not return a value to the calling function, the return type
of this function should be void."
Two issues:
1. You're passing in the calculated base_area and side_area. This is good, but you are treating it as if you're passing in the radius and height from within the actual function, so you're calculations will be wrong.
2. Okay, so keep it as a void function, but you want a cout << statement to be inside the prntSurfArea function itself. Then remove the existing line 32, and keep line 31 unchanged.