Explore BrainMass
Share

program that reads this information and calculates

People from three different income levels, A, B, and C, rated each of two different products with a number 0 through 10. Construct a file in which each line contains the income level and product rankings for one respondent. Then write a program tht reads this information and calculates the following:
a. for each income bracket, the average rating for product 1;
b. the number of persons in income bracket B who rated both products with a score of 5 or higher;
c. the average rating for product 2 by persons who rated product 1 lower than 3.
Label all output, and design the program so that it automatically counts the respondents.

© BrainMass Inc. brainmass.com August 22, 2018, 12:19 am ad1c9bdddf

Solution Summary

Write a program that reads this information and calculates the following:
a. for each income bracket, the average rating for product 1;
b. the number of persons in income bracket B who rated both products with a score of 5 or higher;
c. the average rating for product 2 by persons who rated product 1 lower than 3.
Label all output, and design the program so that it automatically counts the respondents.

$2.19