Switch statement

Not all people are lightly active, and people who exercise may need to eat more. This section adjusts for a person’s activity level and then adjusts the output of the BMR and the amount of food that can be eaten. To do this you need to know:
How active the user is and how to adjust the output. Therefore, in addition to the input you request from the user in Phase 1, ask the user if he or she is a/an:
• Non-exerciser--sedentary (‘n’)
• Infrequent exerciser--exercise occasionally (‘i’)
• Frequent exerciser--exercise 3-4 days per week (‘f’)
• Every day exerciser (‘e’)
The character next to each choice represents the character the user should input for that choice. Each choice modifies the original BMR calculation by:
• Non-exerciser -- Decrease original calculation by 5%
• Infrequent exerciser -- Increase original calculation by 30%
• Frequent exerciser -- Increase original calculation by 40%
• Every day exerciser -- Increase original calculation by 50%
Your modifications to the original BMR calculation MUST be in a switch statement.
Topic archived. No new replies allowed.