Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions