Question: Create a code in C++ that reads from the archive input.txt the daily sales of every n products of a company, created by every m

Create a code in C++ that reads from the archive input.txt the daily sales of every n products of a company, created by every m sellers during the d days of a given month. After reading the data, the program must calculate and write the following:
1. Total of unities sold of each product in the month (output: name of the product, total of unities sold of the product)
2. Name of the product with the greatest number of unities sold during a given day (output: name of the product, total of unities sold of the product)
3. List of all the sellers with the number of unities sold of one given product in a specific day (output: name of the seller, number of unities sold of the product)
The program must use a 3D dynamic array:
sales[numSellers][numProducts][numDays]
It must also use classes, a 3D dynamic array to store objects of a class, separated compilation, menu, namespaces and the directive #ifndef. All outputs must be by screen and in the output archive output.txt.
The program must verify that first letter of the first and last name of the seller must be in capital letter. In case of being in lower case, it must change it to capital. The format for the sellers name is Last_Name(s) FirstName InitialSecondName. It should also validate all numeric data. When a data is invalid, the screen must show a correspondent error message and the data must NOT be stored in the 3D dynamic array of objects.
 Create a code in C++ that reads from the archive input.txt

Create a code in C++ that reads from the archive input.txt the daily sales of every n products of a company, created by every m sellers during the d days of a given month. After reading the data, the program must calculate and write the following: 1. Total of unities sold of each product in the month (output: name of the product, total of unities 2. Name of the product with the greatest number of unities sold during a given day (output: name 3. List of all the sellers with the number of unities sold of one given product in a specific day sold of the product) of the product, total of unities sold of the product) (output: name of the seller, number of unities sold of the product) The program must use a 3D dynamic array: sales[numSellers][numProducts] [numDays] It must also use classes, a 3D dynamic array to store objects of a class, separated compilation, menu, spaces of names and the directive #ifndef. All outputs must be by screen and in the output archive output.txt. The program must verify that first letter of the first and last name of the seller must be in capital letter. In case of being in lower case, it must change it to capital. The format for the sellers name is Last_Name(s) First_Name Initial_Second_Name. It should also validate all numeric data. When a data is invalid, the screen must show a correspondent error message and the data must NOT be stored in the 3D dynamic array of objects

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!