Question: The program prompts the user to enter the weight in kg. The program prompts the user to enter the target as one character (g. 1,

 The program prompts the user to enter the weight in kg.

The program prompts the user to enter the target as one character

The program prompts the user to enter the weight in kg. The program prompts the user to enter the target as one character (g. 1, or m); Gainin weight (t), or Maintaining body weight (m). 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 'l', 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 wat weight (in kg), the desired target, the protein (in gm) and water intake (in liter) as gi Example 1: Example 2: Enter your name: Ali Enter your weight: 73 Enter your fitness target (g, I, or m): 1 Ali, your weight is: 73 To Lose Body Weight: Your protein intake is: 73 gm Your daily water intake is: 2.628 Liters Example 3: Enter your weight: 57 Enter your fitness target (g. 1, or m): m Fatima, your weight is: 57 kg To Maintain Body Weight: Your protein intake is: 68.4 gm Your daily water intake is: 1.824 Liters Example 4: Enter your name: Amal Enter your weight: 64 Enter your fitness target (g. 1, or m): k Amal, your weight is: 64 kg

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!