a. The Daily Trumpet newspaper accepts classified advertisements in 15 categories such as Apartments for Rent and

Question:

a. The Daily Trumpet newspaper accepts classified advertisements in 15 categories such as Apartments for Rent and Pets for Sale. Develop the logic for a program that accepts classified advertising data, including category code (an integer 1 through 15) and number of words in the ad. Store these values in parallel arrays. Then sort the arrays so that records are in ascending order by category. The output lists each category, the number of ads in each category, and the total number of words in the ads in each category.

b. Modify the newspaper advertising program in Exercise 7a to display a descriptive string with each category. For example, Category 1 might be Apartments for Rent.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: