Question: C++ code needed You own a used car dealeiship. You need a program to keep track of the sales for your business by salesperson- Write

You own a used car dealeiship. You need a program to keep track of the sales for your business by salesperson- Write a program which opens a master sequectial fle. Inputs the data into an array of 20 objects, then splits the file inte one file for eech salespersan (named thair last riames, and print the contents of each as a report ( w inh headings), inclucing a calculated column on the outeut (not written to the fie). Casses mith public dats or structs (delault to all public meinbers) can be used. There are six unique salespeople, and create six tiles atcoroingly. You may yse a switch statement aith the salesperson names as string literals as the case. Sarmele Bota inote: Use your own daba but retain the aame columntaldel Use the following outpit format to generate the report of each fie after it has been written \& repopened. Head each report with the salesperson name. Create a footer to show the total profit for the salespersan (use an accumulatar). Salesman Name Auto Make and Model Auto Year Sale Price Presit Total profit generated by this salespersoe: 59999999.99 Sample input File
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
