Question: need help please with this program my teacher provided instruction told to make 3 seprate file header file cpp and implementation somethinng here is the
need help please with this program my teacher provided instruction told to make 3 seprate file header file cpp and implementation somethinng here is the instruction.


Write a C+class called "Sales" and a main) function that uses the class. Also, write documentation of your project. Below is a specification of the class. . INTRODUCTION A company has four salespeople (1 to 4) who sell five different products (1 to 5). Once a day each salesperson passes in a slip for each different type of product sold. Each slip contains: The salesperson number The product number Date of sale The total dollar value of that product sold that day. Thus a salesperson passes in between 0 and 5 slips per day Here is an example of daily sales data: SALESPERSON ID PRODUCT ID AMOUNT 127.57 3123.99 47.77 500.00 68.72 76.25 894.50 2. DATA STRUCTURES First, provide a struct of the sales slip. Second, provide the class whose data members are as follows A one-dimensional array of slip structures to be used to store sales information for all the sales people for a month. A two dimensional array that will contain a summary of the data from the one dimensional array where the rows shall represent salesperson and the columns shall represent product. A one-dimensional array of names of the four salespersons A one dimensional array of product names. 3. PROGRAM LOGIC 3.1 Input A function member of the class to input data into the one-dimensional array from the keyboard. 3.2 Output A function member of the class to perform: A tabular display using a nested loop going through the two dimensional array. The table columns should be first the salesperson name, the second the product name, and third the sales amount. Use the two-d array indexes to become respective name array indexes. Total for each salesperson and overall totals
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
