Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the complete age population program given in the Pre-lab Reading Assignment. Statement of the problem: Given a list of ages (1 to 100) from

Write the complete age population program given in the Pre-lab Reading Assignment. Statement of the problem:

Given a list of ages (1 to 100) from the keyboard, the program will tally how many people are in each age group.

Sample Run:

Please input an age from one to 100, put -99 to stop

5

Please input an age from one to 100, put -99 to stop

10

Please input an age from one to 100, put -99 to stop

100

Please input an age from one to 100, put -99 to stop

20

Please input an age from one to 100, put -99 to stop

5

Please input an age from one to 100, put -99 to stop

8

Please input an age from one to 100, put -99 to stop

20

Please input an age from one to 100, put -99 to stop

5

Please input an age from one to 100, put -99 to stop

9

Please input an age from one to 100, put -99 to stop

17

Please input an age from one to 100, put -99 to stop

-99

The number of people 5 years old is 3

The number of people 8 years old is 1

The number of people 9 years old is 1

The number of people 10 years old is 1

The number of people 17 years old is 1

The number of people 20 years old is 2

The number of people 100 years old is 1

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

3. How would you address the problems that make up the situation?

Answered: 1 week ago

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago