Get weight value from user.
Get MET score for activity.
Get time spent doing activity.
Output (0.0175 * MET * time * weight/2.2)
Which of those can you not do?
Moschops
Practically a Posting Shark
889 posts since Sep 2008
Reputation Points: 297
Solved Threads: 170
Skill Endorsements: 5
I'll take that to mean you don't know how to take in the weight value from the user. This is, as a general rule, one of the first things in the textbook or class notes. Here is how to get a value from the user:
cin >> someVariable;
Moschops
Practically a Posting Shark
889 posts since Sep 2008
Reputation Points: 297
Solved Threads: 170
Skill Endorsements: 5