Question: 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

 Test this program with the following values using python programming language: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 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!