Menu

[Solved]Design Modular Program C Brewster S Used Car S Inc Employ Several Salespeople Brewster Own Q37271876

Design a modular program in C++

Brewster’s Used Car’s, Inc. employ several salespeople.Brewster, the owner of the company, has provided a file thatcontains sales records for each salesperson for the past month.Each record in the file contains the following two fields: Thesalesperson’s ID number, as an integer and the amount of a sale, asa 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 salesperson’s sales and the total salesfor that salesperson. Use Brewster. txt file that contains all thedata as displayed below. The report should also show the totalsales for all salespeople for the month.

Here is an example of how the sales report should appear:

Brewster’s Used Cars, Inc.

Sales Report

Salesperson ID Sale Amount

======================================

100 $10,000.00

100 $12,000.00

100 $5,000.00

Total sales for this salesperson: $27,000.00

101 $14,000.00

101 $18,000.00

101 $12,500.00

Total sales for this salesperson: $44,500.00

102 $13,500.00

102 $14,500.00

102 $20,000.00

Total sales for this salesperson: $48,000.00

Total of all sales: $119,500.00

Expert Answer


Answer to Design a modular program in C++ Brewster’s Used Car’s, Inc. employ several salespeople. Brewster, the owner of the compa… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *