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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:30
Me2540 week 5 assignment what do i want to know?
Answers: 1
question
Computers and Technology, 22.06.2019 14:40
You begin your first day of responsibilities by examining the recent is security breach at gearup to get ideas for safeguards you will take. at gearup, criminals accessed the company's improperly-secured wireless system and stole customers' credit card information as well as employee social security numbers. what kind of computer crime did gearup face?
Answers: 3
question
Computers and Technology, 22.06.2019 15:00
When designing content as part of your content marketing strategy, what does the "think" stage represent in the "see, think, do, care" framework?
Answers: 3
question
Computers and Technology, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
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
question
Mathematics, 08.07.2019 23:30
Questions on the website: 13722361