Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write in java language. Problem #1: [30pts] Write a java program that asks the user to enter his age, then displays the approximate number of

write in java language. image text in transcribed
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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Multimedia Database Systems

Authors: V.S. Subrahmanian

1st Edition

1558604669, 978-1558604667

More Books

Students also viewed these Databases questions

Question

Only elected legislators can become members of political parties.

Answered: 1 week ago

Question

=+ Are unions company-wide, regional, or national?

Answered: 1 week ago

Question

=+j Explain the litigation risks in international labor relations.

Answered: 1 week ago

Question

=+j What rules will apply to the process of negotiations?

Answered: 1 week ago