Question
Create an application that displays payroll information by: a. Drawing the flowchart for this application. b. Write the code by using Visual Basic programming language.
Create an application that displays payroll information by:
a. Drawing the flowchart for this application.
b. Write the code by using Visual Basic programming language.
Design your application to have the following characteristics:
1.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.
2.Number of employees is defined by the user when the program is start running.
3.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).
4.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)
5.The application should prevent the user entering information for more than the number of employees which is entered by the user (Point 2, above)
6.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
7. The application has four buttons:
a. 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.
b. 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.
c. Clear Button (or r + ALT): Clear the list, textboxes, and labels (if you have them in the applications).
d.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