Array Program

Assume that you are asked to develop from scratch another application for the EMOVIE company. This company has sold movies from 4 main motion picture production companies (Paramount, Twentieth Century Fox, Warner, and WaterFront). We will use the numbers 1,2,3, and 4 to refer to each of the above companies respectively. You should read each record from keyboard which contains a customer name (a string), code of motion picture company (can be 1 or 2 or 3 or 4) and cost (double value). There could be many invoice records for the same customer. We assume we work with 100 customers.

Write a program that contains at least 2 classes, which allows users to read data from keyboard and press -1 if finished. After the user finishes entering data, your program should print a report containing six columns. The first column should be a customer name. The next four columns should give the total of that customer’s purchases from each of the four companies. The last column should give the sum of the purchase values for the four companies for that customer. At the bottom of each numeric column list the sum, average, and maximum values of the numbers in the column. In your report, the column heading should contain the names of four production companies instead of numbers 1,2,3, and 4.
...what's the difficulty?
Topic archived. No new replies allowed.