Brewsters Used Cars, Inc. employ several sales people. Brewster, the owner of the company, has provided a file that contains sales records for each salesperson for the past month. Each record in the file contains the following two fields: The salespersons ID number, as an integer and the amount of a sale, as a real number. The records are already sorted by salesperson ID. Brewster wants you to design a program that prints a sales report. The report should show each salespersons sales and the total sales for that salesperson. The report should also show the total sales for all salespeople for the month.Salesperson ID Sale Amount============================100 $10,000100 $12,000100 $45,000Total sales for this salesperson: $27,000
101 $14,000101 $18,000101 $12,500Total sales for this salesperson: $44,500
102 $13,500102 $14,500102 $20,000Total sales for this salesperson: $48,000Total of all sales: $119,500
Reviews
There are no reviews yet.