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.
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.