Question: Write a C++ console application to generate a sales report. The program will use multiple arrays and functions. You must use all functions in your
Write a C++ console application to generate a sales report. The program will use multiple arrays and functions. You must use all functions in your program.
Your program should read data from an input file and write the report to the output file. The program should ask the user to enter the name of both the input file and the output file. The output file will contain the activity report. DO NOT HARD CODE THE NAMES OF THESE FILES IN THE PROGRAM. IT WILL BE MARKED AS INCORRECT IF THE FILENAMES ARE HARD CODED INTO THE PROGRAM. Again, ask the user to enter both the input and output filenames and then use those files respectively for input and output (sample execution below).
In main you will need to declare three arrays. One for sales figures, one for first names, and one for last names. You will need to get the filenames from the user in main.
You will need to create an input data file for the program (see format below).
Make sure you split up the code into appropriate header files (.h) and source files (.cpp). All function prototypes should be in another header file (.h). All function definitions should be in one source file (.cpp). The main function should be in yet another source file (.cpp).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
