Question: 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
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
Get step-by-step solutions from verified subject matter experts
