A car dealer has 10 salespeople.
The management keeps the data in a file and assigns a number, 1 to 10, to each salesperson.
The following statement declares an array, cars, of 10 components of type int to store the number of cars sold by each salesperson:
a. store the number of cars sold by each salesperson in the array cars,
b. output the total numbers of cars sold at the end of each month,
c. output the salesperson number selling the maximum number of cars.
(Assume that data is in the file cars.dat, and that this file has been opened using the ifstream variable inFile.)
Recently Asked Questions
- Assume these are the stock market and Treasury bill returns for a 5-year period: Year Stock Market Return T-Bill Return Year 1 −35.63
- (LO 3) A company has two products: A and B. It uses activity-based costing and has prepared the following analysis showing budgeted cost and activity for each
- WEEK 7: COURSE PROJECT: SYSTEM IMPLEMENTATION AND OPERATION SDLC PHASE 4 PACKAGE–PART 2