Question: C++ PROGRAM PLEASE. PLEASE MAKE SURE THE CODE USES AN IFSTREAM FILE TO GET THE INPUT INFORMATION . Create a Program that will INPUT Employee

C++ PROGRAM PLEASE. PLEASE MAKE SURE THE CODE USES AN IFSTREAM FILE TO GET THE INPUT INFORMATION.

Create a Program that will INPUT Employee Information from a file, calculate the BONUS based on their ranking among their peers, and OUTPUT information as defined below. The program should contain separate functions wherever redundancy appears; you MUST have at least 3 User-Defined Functions in your program. The INPUT information must include: Employee Name (both First and Last), 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 a 10 % if they are the number 3 person. NOTE: 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 year. Employees First and Last Name, Location, BONUS for the year should be printed. All OUTPUT MUST have appropriate headings. (Specifically, all information should be printed using the functionality contained in the preprocessor directive IOMANIP, 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, Home Phone and their 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

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!