Question
Using java, create a Calorie Counter program that allows a user to calculate daily caloric needs to maintain his/her weight, using the following rules. Your
Using java, create a Calorie Counter program that allows a user to calculate daily caloric needs to maintain his/her weight, using the following rules. Your program should contain a loop that enables the user to input values for all meals and snacks, one at a time. Your program should ask the user to enter a response in the form of a String to indicate he has more data to enter, or if he is done.
Make sure you validate input with regard to gender.
Each time a meal or snack is entered, the program should display the calories the user has left for the day.
Daily Caloric Needs Step 1 Determine your basal metabolic rate with the appropriate formula: Female: 655+(4.35 x weight in pounds)+(4.7 x height in inches)-(4.7 x age in years) Males: 665+(6.23x weight in pounds)+(12.7 x height in inches)-(6.8 x age in years) Step 2 Insert your BMR into the appropriate formula to determine daily caloric needs: You don't exercise: BMR x 1.2 You engage in light exercise one to three days a week: BMR x 1.375 You exercise moderately three to five times a week: BMR x 1.55 You exercise intensely six to seven days a week: BMR x 1.725 You exercise intensely six to seven days a week and have a physically active job: BMR x 1.9
Create a Calorie Counter program that allows a user to calculate daily caloric needs to maintain his/her weight, using the following rules. Your program should contain a loop that enables the user to input values for all meals and snacks, one at a time. Your program should ask the user to enter a response in the form of a String to indicate he has more data to enter, or if he is done. Make sure you validate input with regard to gender. Each time a meal or snack is entered, the program should display the calories the user has left for the day. Daily Caloric Needs Step 1 Determine your basal metabolic rate with the appropriate formula: Female: 655+(4.35 x weight in pounds)+(4.7 x height in inches)-(4.7 x age in years) Males: 665+(6.23x weight in pounds)+(12.7 x height in inches)-(6.8 x age in years) Step 2 Insert your BMR into the appropriate formula to determine daily caloric needs: You don't exercise: BMR X 1.2 You engage in light exercise one to three days a week: BMR x 1.375 You exercise moderately three to five times a week: BMR X 1.55 You exercise intensely six to seven days a week: BMR x 1.725 You exercise intensely six to seven days a week and have a physically active job: BMR x 1.9 Create a Calorie Counter program that allows a user to calculate daily caloric needs to maintain his/her weight, using the following rules. Your program should contain a loop that enables the user to input values for all meals and snacks, one at a time. Your program should ask the user to enter a response in the form of a String to indicate he has more data to enter, or if he is done. Make sure you validate input with regard to gender. Each time a meal or snack is entered, the program should display the calories the user has left for the day. Daily Caloric Needs Step 1 Determine your basal metabolic rate with the appropriate formula: Female: 655+(4.35 x weight in pounds)+(4.7 x height in inches)-(4.7 x age in years) Males: 665+(6.23x weight in pounds)+(12.7 x height in inches)-(6.8 x age in years) Step 2 Insert your BMR into the appropriate formula to determine daily caloric needs: You don't exercise: BMR X 1.2 You engage in light exercise one to three days a week: BMR x 1.375 You exercise moderately three to five times a week: BMR X 1.55 You exercise intensely six to seven days a week: BMR x 1.725 You exercise intensely six to seven days a week and have a physically active job: BMR x 1.9Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started