Question: in C++ language Question 11 Write a C++ programs to calculate the water and the protein intake for an athlete based on her and The

Question 11 Write a C++ programs to calculate the water and the protein intake for an athlete based on her and The program prompts the user to enter the weight in kg. The program prompts the user to enter the target as one character te lor my, Gaining body weight to. Loning body weight . In case the target is 'g' (gaining body weight) The protein intake is 1.2 gm for each kg of the body weight The water intake is 0.033 liters/Kg of the body weight. . In case the target is 'm', which is maintaining body weight, then: The protein intake is 1.0 gm for each Kg of body weight The water intake is 0.036 liters/kg of the body weight. In case the target is T', which means losing body weight, then: The protein intake is 2.2 gm for each Kg of the body weight The water intake is 0.032 ml/kg of the body weight. Use a switch structure to solve this problem and calculate the daily protein and water intake for the athlete and display the (in kg), the desired target the protein (in gm) and water intake (in liter) as given in the below sample Input/Output Example 1: Enter your name: Ahmed Enter your weight: 53 use a switch structure to solve this problem and calculate the daily protein and to the (in the desired target the protein inn) and water intents in the Example 1: A you They were your protein your own Example 2: Enter your name AS Enter your Enter your res target om All you whi73 To Lose Body weight Your protein intake73 m Your daily water intake 26 Liters Example 3: Enter your weight: 57 Enter your fitness target stor mm Fatime your weight is: 57 kg To Maintain Body Weight: Your protein intake is: 68.4m Your daily water intake is: 1.824 Liters Example 4: Enter your name: Amal Enter your weight: 64 Enter your nitness target sorm: Amal your weight is: 64 kg Invalid target entry! For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
