Daily life magazine wants an analysis of the demographic characteristics its readers. The marketing department has collected reader survey records containing, the age, gender, maritial status, and annual income of the readers. Design an application that allows a user to enter reader data and, when data entry is complete produces a count of readers by age groups as follows: under 20, 20-29, 30-39,40-49, and 50 and older

Ancient Dragon commented: don't cross post -6

Recommended Answers

All 2 Replies

save the age of each user as an integer variable such as "reader_age"

Then, you can classify it in C using the switch case method and adding up the different age groups..

Crosspost. Closed

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.