Question: Hello This problem is in java programming language The (sample run) represents what the result or outcome should be Please help Problem #1: (30pts] Write

 Hello This problem is in java programming language The (sample run)

Hello This problem is in java programming language The (sample run) represents what the result or outcome should be Please help

Problem #1: (30pts] Write a java program that asks the user to enter his age, then displays the approximate number of calories intake per day as follows: Age Calories intake 40 Between 1,800 and 2,000 calories I If the user enters a negative or zero age then the message "Invalid age!" is displayed. Sample run 1: Enter your age: 20 You need to eat between 2000 and 2400 calorie per day and stay Active! Sample run 2 : Enter your age: 14 You need to eat between 1400 and 1800 calorie per day and Stay Active! Sample run 3: Enter your age: 0 Invalid age

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!