Question: Data files: Please write the program in c++ Start off with #include iostream etc. Also include an image showing what the output come out to
based on their ranking among their peers, and OUTPUT information as defined below. The program should eontain separate functions wherever redundancy appears; you M 3 User-Defined Functions in your program. Create a Program that will INPUT Employee Information from a ,calculate the BONUS UST have at least The INPUT information must include Employee Name (both First and Las), an Employee ID, their Home Address (Street, City State and Zip), their Home Phone/Personal Contact Number, their Work Location (you should have at least 3 different/possible locations), their Base Salary, and their Sales for the last 12 months. ALL information INPUT about each employee, except their Bonus and Total Salary, of course, will be obtained from a file which you will need to create. INPUT will be read into a STRUC which you will design. The program will calculate a 20% bonus based on their Total Sales for the year if they are the top selling employee, a 15% bonus if they are the #2 person and 10 % if they are the number 3 person. All other employees will receive a 5% bonus if their sales are greater than a specified "minimum" amount or NO bonus if they did not produce that "minimum" amount. The employees TOTAL SALARY is their Base Salary plus their BONUS. The OUTPUT will be PRINTED in increasing order by TOTAL SALARY for the vear Employees First and Last Name, Location, BONUS for the year should be printed. AIl OUTPUT MUST have appropriate headings. (Specifically, all information should be printed using the functionality contained in the preprocessor directive 1OMANIP, that is, output should be in tabular form with appropriate headings.) Lastly, you will print all Employee Contact Information separately. Again, First Name, Last Name, Employee ID, their Location and their Home Address and Home Phone and Ranking by Total Salary. EXTRA CREDIT: The program will calculate a 20% bonus based on their total sales for the year if they are the top selling employee FOR EACH LOCATION SEPARATELY and give, by LOCATION, a 15% bonus if they are the #2 person at their location and 10 % if they are the number 3 person. All other employees will receive a 5% bonus if their sales are greater than a specified minimum" amount For the Extra Credit, you will print all Employee Contact Information separately BY LOCATION. OUTPUT MUST INCLUDE: First Name, Last Name, Employee ID, their Location, Home Address and Home Phone, AND THEIR Ranking in order by BONUS for EACH LOCATION
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
