Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python You are tasked to create a program that stores a person's age in a list called age. The program will ask first the value

image text in transcribedpython

You are tasked to create a program that stores a person's age in a list called age. The program will ask first the value of a counter. The value of the counter will tell the number of times how many person's age will be stored in the list. From the ages entered, be able to count the young and old person in the list. Age is young if it is less than or equal to 50, otherwise it is old. Display the values stored in the list, the number of young persons and the number of old persons. SAMPLE OUTPUT FORMAT ENTER A COUNTER: 3 ENTER PERSONI AGE: 45 ENTER PERSON2 AGE: 56 ENTER PERSON3 AGE: 67 age: [45.0, 56.0, 67.0] Number of Young: 1 Number of old: 2 Marks Distribution: Input Process/logic Output 1 1.5 2.5

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

What qualities do you see as necessary for your line of work?

Answered: 1 week ago