Question: Program 3 - submit the source code and outpur dotofile Write a C++ program that will help a company figure out the weekly gross pay

 Program 3 - submit the source code and outpur dotofile Write

Program 3 - submit the source code and outpur dotofile Write a C++ program that will help a company figure out the weekly gross pay for each of its 30 salespeople. The company pays it salespeople on a commission basis. The salespeople receive $300 per week plus 50 percent of their gross soles for the week. Your program should read from the file salesdata.txt the employee id and weekly gross sales amount for each salesperson and store that information into two parallel arrays named salesperson and salesdata. The program should calculate the weekly pay for each salesperson and store those values into a separate parallel array named paydata. Your program should then print out a table showing the gross sales and then the weekly pay for each of the 30 employees, Depending on the values in the data file, your output should look similar to the following Employee Cross Sales Weekly Pay 12462 $1000.50 $800.30 23232 $300.50 $450.25 54433 $ 5000.00 $2800.00

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!