Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a flowgorithm that asks the user to input a person s age. The program should then display a message indicating whether the person is
Write a flowgorithm that asks the user to input a persons age. The program should
then display a message indicating whether the person is an infant, child, teenager or an
adult based on the following guidelines:
year or less, person is an infant
Over year but less than years, person is a child
At least but less than person is a teenager
years or greater, person is an adult
The flowgorithm should perform the following:
declare the necessary variables and constants
initialize the constants
clearly prompt the user for the age of the person
perform the necessary tests for the input age
display the status of the person based on age, clearly labeled
use a comment block for your name, lab name and date at top of flowchart
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started