subject

Write a program that asks the user to input ages of students attempting to register for an online class, one at a time. After each entry, the program should display “Pre-teen”, “Teenager”, “Adult”, or “Too young to register”. The minimum age required to register is 10. When the user wants to stop entering ages s/he will enter -1. Upon doing so, the number of “Pre-teen”, “Teenager” and “Adult” students should be displayed. Also, display the average age of the registered students. # Example

Please enter your age: 19

Teenager

Please enter your age: 27

Adult

Please enter your age: 23

Adult

Please enter your age: 8

Too young to register

Please enter your age: 12

Pre-teen

Please enter your age: -1

Pre-teen(s): 1

Teenager(s): 1

Adult(s): 2

Average age: 20.25

please help i need this done by tonight and it needs to be written in python.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:00, paige1614
When you collaborate or meet with a person or group online, it is called
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, Arealbot
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 1
image
Computers and Technology, 23.06.2019 00:00, brooklyn4932
What engine component is shown in the above figure?
Answers: 1
image
Computers and Technology, 24.06.2019 02:40, homework1911
Has anyone seen my grandma shes been gone for 4 years already
Answers: 1
You know the right answer?
Write a program that asks the user to input ages of students attempting to register for an online cl...

Questions in other subjects: