Should have label and textboxes for the user to enter hours worked and rate of pay. The program should use a value-retu
Posted: Fri Apr 29, 2022 6:43 am
Should have label and textboxes for the user to enter hours
worked and rate of pay. The program should use a
value-returning method to figure gross pay by passing information
from the user when a calculate button is clicked. If the
hours are greater than 40 overtime should be calculated as well
based on 1.5 times the rate for all hours over 40, with regular pay
for the first 40 hours. There should also be a value
returning method called deductions. In this method, you
should use a constant for FICA to be 6.5% of gross pay. Taxes
should be figured as follows: Gross pay less than or equal to
200 – Tax is 0, Gross pay greater than 200 but less than 500 – Tax
is 5% of Gross pay, Gross pay greater than or equal to 500 – Tax is
7.5% of gross pay. Return FICA tax + tax from this
method. There should be a void method called Net pay that
gets passed gross pay and deductions and then calculates and
displays all information with headings in a list box for the
employee info entered.
Add a Clear button to clear info in textboxes and listbox to
start again.
Add a Close button to close the form to return to frmMain.
in C#
worked and rate of pay. The program should use a
value-returning method to figure gross pay by passing information
from the user when a calculate button is clicked. If the
hours are greater than 40 overtime should be calculated as well
based on 1.5 times the rate for all hours over 40, with regular pay
for the first 40 hours. There should also be a value
returning method called deductions. In this method, you
should use a constant for FICA to be 6.5% of gross pay. Taxes
should be figured as follows: Gross pay less than or equal to
200 – Tax is 0, Gross pay greater than 200 but less than 500 – Tax
is 5% of Gross pay, Gross pay greater than or equal to 500 – Tax is
7.5% of gross pay. Return FICA tax + tax from this
method. There should be a void method called Net pay that
gets passed gross pay and deductions and then calculates and
displays all information with headings in a list box for the
employee info entered.
Add a Clear button to clear info in textboxes and listbox to
start again.
Add a Close button to close the form to return to frmMain.
in C#