Question
Create an application that displays payroll information by: Drawing the flowchart for this application. Write the code by using Visual Basic programming language. Design your
Create an application that displays payroll information by:
Drawing the flowchart for this application.
Write the code by using Visual Basic programming language.
Design your application to have the following characteristics:
The application calculates Net pay for each employee and display his information in a list. The list should have the information of all employees. Each row in this list has an information of one employee.
Number of employees is defined by the user when the program is start running.
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).
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)
The application should prevent the user entering information for more than the number of employees which is entered by the user (Point 2, above)
When the calculations are performed, be sure to check for the following error:
If any employees state income tax plus federal tax plus FICA is greater than the employees gross pay, display an error message stating that the withholdings are too big
The application has four buttons:
Calculate Button (or Enter Key): Calculate the Net pay for each employee and display the following information for this employee as a row in your list:
Employee first name
Employee last name
Number of hours worked
Hourly pay rate
Gross pay (the number of hours worked multiplied by the hourly pay rate)
State income tax withholdings (gross pay multiplied by state income tax percentage)
Federal income tax withholdings (gross pay multiplied by federal income tax percentage)
FICA withholdings (gross pay multiplied by FICA income tax percentage)
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 employees state income tax plus federal tax plus FICA is greater than the employees gross pay, display an error message stating that the withholdings are too big
The employee which has error in his information, his information should not be added to the list.
Search by last name Button (or s + ALT): Display in a message box or in a label the above information for the selected last name.
Clear Button (or r + ALT): Clear the list, textboxes, and labels (if you have them in the applications).
Exit Button (or Esc key): Close the application.
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