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
- Explain KPIs what are they, as they apply to web analytics. Explain your position if you agree or disagree with their relevance in web analytics.
- poem "To Autumn" 1/2/3 1. What is the literal meaning of the stanza? 2. List any images having to do with autumn/season/time/woman/femininity. Look closely.
- To measure the distance to very far-off galaxies, we try to detect Type Ia supernovae exploding in those galaxies. Why would they be such reliable distance