Create an application that displays payroll information for a specific number of employees. Your application should have
Question:
Create an application that displays payroll information for a specific number of employees. Your application should have the following characteristics:
1) Number of employees is defined by the user when the program is start running. (Hint: you can use inputbox)
2)The data that should be entered for each employee are:
Employee first name
Employee last name
Number of hours worked
Hourly pay rate
Percentage to be withheld for state income tax
Percentage to be withheld for federal income tax
Percentage to be withheld for The Federal Insurance Contributions Act (FICA)
Note: The user should enter the data of each employee by using text boxes (for example, textbox for first name, textbox for last name, and so on).
3)The application should prevent the user entering information for more than the number of employees which is entered by the user (Point 1, above)
4)The application has Three buttons:
Calculate Button (Enter Key): The application calculates Net pay for each employee and display his information in a list (Use Listview). The list should have the information of all employees. Each row in this list has an information of one employee:
Employee first name
Employee last name
Gross pay (the number of hours worked multiplied by the hourly pay rate)
Taxes (income tax + federal income tax + FICA)
Net pay (the gross pay - Taxes)
When the calculations are performed, be sure to check for the following error:
*Make sure that all textboxes have the required data before using them in your calculation (including No empty textbox).
*If any employee’s state income tax plus federal tax plus FICA is greater than the employee’s gross pay, display an error message stating that the withholdings are too big
Note: The employee which has error in his information, his information should not be added to the list (not Displayed).
B. Clear Button (r + ALT): Clear the list and textboxes.
C. Exit Button (Esc key): Close the application.