Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The XYZ Company pays its sales staff a monthly salary, and keeps a record of the total amount of sales made by each person that
The XYZ Company pays its sales staff a monthly salary, and keeps a record of the total amount of sales made by each person that month If a person's total least is at dollar 100,000,00, a bonus of dollar 1000,00 is added to the monthly salary for that month's pay The number of sales staff changes each month, but is never more than 150. An input file contains 3 lines of data for each employee: Employee name Roger Rabbit Amount of employee's monthly salary (with a dollar sign) dollar 5388.50 Total sales made by the employee for the month (with a dollar sign) dollar 500942.78 There are three-line entries for whatever number of people from the sales staff that month. The program will use three parallel arrays for input data: one for employee names, one for employee salary, and one for the employee's total sales. The program will compute data for two additional parallel arrays, one for the bonus for each employee, and another foe the employee's total pay for the month. The program also determines the Sales Employee of the Month (the employee with the highest total sales). Output will show the contents of the 5 arrays in a table with 5 columns, the first row of output labels the columns. Use output formatting to insure that dollar amounts are shown with 2 decimal places, right adjusted in their columns so the decimal points line up. After the table, the Sales Employee of the month is named, along with his/her total sales for the month. Function Requirements: Input is done in a function; the calling program receives die 3 input arrays' contents and the number of sales employees. Output b done in a function
Step 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