Write a program that asks the user to enter a person’s age. The program should display a message indicating whether the person is an infant, a child, a teenager, or an adult. Following are the guidelines:  •  If the person is 1 year old or less, he or she is an infant.  •  If the person is older than 1 year, but younger than 13 years, he or she is a child.  •  If the person is at least 13 years old, but less than 20 years old, he or she is a teenager.  •  If the person is at least 20 years old, he or she is an adult.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 3E: Write a program named Admission for a colleges admissions office. The user enters a numeric high...
icon
Related questions
Question

Write a program that asks the user to enter a person’s age. The program should display a message indicating whether the person is an infant, a child, a teenager, or an adult.
Following are the guidelines:
 •  If the person is 1 year old or less, he or she is an infant.
 •  If the person is older than 1 year, but younger than 13 years, he or she is a child.
 •  If the person is at least 13 years old, but less than 20 years old, he or she is a teenager.
 •  If the person is at least 20 years old, he or she is an adult. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Constants and Variables
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning