CALCULATING EMPLOYEE BONUS NUS Create a Program that will INPUT Employee Informa
ID: 3592976 • Letter: C
Question
CALCULATING EMPLOYEE BONUS NUS Create a Program that will INPUT Employee Information from a file, calculate the BO 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 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 year Employees First and Last Name, Location, BONUS for the year should be printed. AlI 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 and Home Phone and Ranking by Total Salary.Explanation / Answer
#include int main() { float basic, gross, da, hra; /* Input basic salary of employee */ printf("Enter basic salary of an employee: "); scanf("%f", &basic); /* Calculate D.A and H.R.A according to specified conditions */ if(basicRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.