Hi guys, I'm new to programming and I'm a bit stuck on a certain program. I've found someone else on this forum who literally copy and pasted our assignment but the solutions given to them don't really make any sense to me and I just need a little more guidance.
Anyways, our assignment is to make a program that calculates Basal Metabolic Rate (BMR) for men and women, and then, using that, outputs the number of bagels they can eat in a single day. It's required that all the cout and cin stuff ("Enter gender, etc) is within the main() function, while there are two other functions that perform the BMR calculation and subsequently pass it back to main() to calculate and output the number of bagels.
I've gotten the program to compile finally after an entire day of random/confusing errors that I couldn't understand, but now I'm stuck as to how I get the program to output the BMR and subsequently pass it back to main() to do the bagel calculations. It seems I understand all the little parts but when put together, I'm just confused. ):
Any help is extremely appreciated!!!! I'm brand new to this and I'm just really frustrated and upset with myself right now.
But I'm not sure if that's how to properly use a named constant (it's a requirement we use one for this step), and I get an error saying (obviously) bmr is undefined. Thank you so much for all your help!!!!