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

Using java, create a Calorie Counter program that allows a user to

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

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!