Question: Help with C++ For this lab, you will create a quarterly sales report from the information contained in a data file called, sales.txt. This file

Help with C++
 Help with C++ For this lab, you will create a quarterly
sales report from the information contained in a data file called, "sales.txt."

For this lab, you will create a quarterly sales report from the information contained in a data file called, "sales.txt." This file can be found on Canvas in the same Module as this lab. Each line of this text file contains data similar to the format shown below 2013-1003 B 120.00 The first field is the invoice number (which is not used), the second field is an equipment code, and the third field is the cost of the parts on that order. The equipment codes are as follows: A Capital Equipment B Expensed Equipment C Small Parts Write a program and keep your code in one file, named Sales.cpp. Your program should read a line from the data file (sales.txt) and store the corresponding input in a struct. Next, you will add this struct to a vector. Continue reading lines and adding new data to the vector until all data in sales.txt has been read. Finally, call a function to write a report to a text file called, "inventoryReport.txt."The file should look exactly like the report shown below SALESRE PORT Capital Equipment Expensed Equipment Small Parts $24093.18 $22222.80 $45251.98 26.31% 24.27% 49.42% Total Sales $91567.96

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!