Question: Computer Program: C++ Xcode or code blocks CS 317 Salesman Sales&Salary A company pays its salespeople on a commission basis. The salespeople each receive $200
CS 317 Salesman Sales&Salary A company pays its salespeople on a commission basis. The salespeople each receive $200 per week plus 9 percent of their gross sales for the sales period. For example, a salesperson who grosses S5000 in sales in the period receives $200 plus 9 percent of $5000, or a total of $650. Write a program (using an array of counters and an array of accumulators) determines for each salesperson their total sales, their average sales and their salary. There are 10 salesmen for the company. The data file is SalesPerson Sales.txt". It contains the salesperson number (1-10) followed by his sales. Each salesperson has numerous sales listed in the file. Print out each salesman's number, their total sales, their average sales and their salary for the given period in a nice table format. I also need the total sales amount that ALL my salesmen did for this month, a company-wide total. The government has put new taxes on my company so we need to know which salesman was my lowest producer. I need to cut back on salesman for the future tax increases on my company so print out the salesman with the lowest total sales. (Again, the columns must be lined up in a nice table format with labels at the top of each column) Sales# totall avg | Solan( bhal all lWoIst salesmar)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
