Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 Tsukuba Japan April 2010 Proceedings Part 1 Lncs 5981

Authors: Hiroyuki Kitagawa ,Yoshiharu Ishikawa ,Wenjie Li ,Chiemi Watanabe

2010th Edition

3642120253, 978-3642120251

Students also viewed these Databases questions

Question

1. Discuss the four components of language.

Answered: 1 week ago

Question

a. How many different groups were represented?

Answered: 1 week ago