Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Test this program with the following values using python programming language: 3,12,19,55,72 Create the following program to classify people into certain age groups: User enters

image text in transcribedTest this program with the following values using python programming language: 3,12,19,55,72

Create the following program to classify people into certain age groups: User enters an integer number, store the entered number into a variable named age First test this variable is less than 20 - If it is, then test this variable whether less than 5 - If it is, display a message 'Age [3] is a child before school' (where [3] is the value of the variable) - If it is not less than 5, test whether it is less than 18 and display a message 'Age [12] is a child in school' (where [12] is the value of the variable) - If it not less than 5 or 18 , display a message 'Age [19] is a child shortly before adulthood' (where [19] is the value of the variable) If the variable is not less than 20 - Test whether this variable is less than 65 - If it is, display message 'Age [55] is a working adult' (where [55] is the value of the variable) If it is not less than 20 or 65, display a message '"Age [72] is senior in retirement' (where [72] is the value of the variable)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions