Ask user to enter their age. Use a "user validation loop" to make sure their age is between 10 and 100. If not, keep on asking for the correct age. Once you have the age, print the following statement based on their age. 10 - 20 Young 21 - 30 Student 31 -50 Professor 51-60 Old Professor 61 - 100 Retired Professor

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter5: The Repetition Structure
Section: Chapter Questions
Problem 4MQ1
icon
Related questions
icon
Concept explainers
Question
Use python 1
Ask user to enter their age.
Use a "user validation loop" to make sure their age is between 10 and 100. If not, keep
on asking for the correct age. Once you have the age, print the following statement based
on their age.
10 - 20 Young
21 - 30 Student
31 - 50 Professor
51-60 Old Professor
61 - 100 Retired Professor
Transcribed Image Text:Ask user to enter their age. Use a "user validation loop" to make sure their age is between 10 and 100. If not, keep on asking for the correct age. Once you have the age, print the following statement based on their age. 10 - 20 Young 21 - 30 Student 31 - 50 Professor 51-60 Old Professor 61 - 100 Retired Professor
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Control Structure
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
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning