Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can you please write this program in C++ and the Pseudocode for this program. please do it in GEANY OR ELIPIC program To solve the
can you please write this program in C++ and the Pseudocode for this program.
please do it in GEANY OR ELIPIC program
To solve the following problem, you will use a two-dimensional array and two arrays of strings. A company has four salespeople (1 - 4) who sell 5 different products (1 - 5). Once a day, each salesperson passes in a slip for each different type of product sold. Each slip contains: 1. The salesperson number 2. The product number 3. The total dollar value of that product sold that day 4 Before the slips are entered, the name of the salesperson (first and last name separated by a space) will be entered into an array of strings called names. The products will also be entered into an array of strings called products. The program will first prompt the user for the names of all of the salespersons (1 - 4) and then will prompt for all of the products (1 - 5) and store the names in the correct location in the array Then in your program you will allow the slips to be entered for a month and totaled. If there is already a value entered for the salesperson, you will add the new slip information to the current information. You program will read all this information and summarize the total sales by salesperson by product. All totals should be stored in the double-scripted array sales. After processing all the information for the last month, print the results in tabular format with each of the columns representing a particular salesperson (print out their name) and each of the rows representing a particular product (print out the product names). Cross total each row to get the total sales of each product for the last month; cross total each column to get the total sales by salesperson for the last month. Your tabular printout should include these cross totals to the right of the totaled rows and to the bottom of the totaled columns Example input Enter salesperson #1 name Joe Blow To solve the following problem, you will use a two-dimensional array and two arrays of strings. A company has four salespeople (1 - 4) who sell 5 different products (1 - 5). Once a day, each salesperson passes in a slip for each different type of product sold. Each slip contains: 1. The salesperson number 2. The product number 3. The total dollar value of that product sold that day 4 Before the slips are entered, the name of the salesperson (first and last name separated by a space) will be entered into an array of strings called names. The products will also be entered into an array of strings called products. The program will first prompt the user for the names of all of the salespersons (1 - 4) and then will prompt for all of the products (1 - 5) and store the names in the correct location in the array Then in your program you will allow the slips to be entered for a month and totaled. If there is already a value entered for the salesperson, you will add the new slip information to the current information. You program will read all this information and summarize the total sales by salesperson by product. All totals should be stored in the double-scripted array sales. After processing all the information for the last month, print the results in tabular format with each of the columns representing a particular salesperson (print out their name) and each of the rows representing a particular product (print out the product names). Cross total each row to get the total sales of each product for the last month; cross total each column to get the total sales by salesperson for the last month. Your tabular printout should include these cross totals to the right of the totaled rows and to the bottom of the totaled columns Example input Enter salesperson #1 name Joe BlowStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started