Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java 1. If the user is 1 year old or younger, print You are an infant 2. If the user is over 1 year old

java image text in transcribed
1. If the user is 1 year old or younger, print You are an infant" 2. If the user is over 1 year old and 3 years old or younger, print: "You are a toddler 3. If the user is over 3 years old and 12 years old or younger, print You are a child 4. If the user is over 12 years old and 19 years old or younger, print 'You are a teenager 5. If the user is over 19 years old and 21 years old or younger, print: "You are a young adult 6. If the user is over 21 years old and 50 years old or younger, print: "You are an adult 7 If the user is over 50 years old but 65 years old or younger, print "You are middle aged" 8. If the user is over 65 years, print. "You are a senior citizen For example: f the user entered: 350, your program would output: You are an infant If the user entered: 800, your program would output: You are a toddler f the user entered, 1825, your program would output: You are a child If the user entered, 5475, your program would output: You are a teenager If the user entered, 7300, your program would output: You are a young adult If the user entered, 10950, your progran would output: You are an adult If the user entered, 23725, your program would output: You are middle aged If the user entered, 25550, your program would output: You are a senior citizen Your prompt to the user to enter the number of days must be: Enter your age in number of days: Please note that your class should be named Agglabel

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

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions