Problem

a. The city of Cary is holding a special census. The city has collected data on cards th...

a. The city of Cary is holding a special census. The city has collected data on cards that each hold the voting district and age of a citizen. The districts are numbered 1 through 22, and residents' ages range from 0 through 105. Design a program that allows a clerk to go through the cards, entering the district for each citizen until an appropriate-ate sentinel value is entered. The output is a list of all 22 districts and the number of residents in each.

b. Modify Exercise 3a so the clerk enters both the district and age on each card. Produce a count of the number of residents in each of the 22 districts and a count of residents in each of the following age groups: under 18, 18 through 30, 31 through 45, 46 through 64, and 65 and older.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT