Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

C++ code needed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions