Write a program  In java that asks for the user's age.     If the age is under 13, output, "You are a      child".     if age is  greater than 13 and less than 19,             output,     "You are a teen".      if age is  greater than 19 and less than 65,            output, "You are an adult".   Over 65, "You are a senior citizen".

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 15PE
icon
Related questions
Question

Write a program  In java that asks for the user's age.  

  If the age is under 13, output, "You are a      child".  

  if age is  greater than 13 and less than 19, 

           output,     "You are a teen".  

   if age is  greater than 19 and less than 65, 

          output, "You are an adult".  

Over 65, "You are a senior citizen".

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 5 images

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT