Answered You can hire a professional tutor to get the answer.

QUESTION

To code, build, and execute an application that calculates an employee's weekly payroll information using user-defined methods, if statements, and a...

To code, build, and execute an application that calculates an employee’s weekly payroll information using user-defined methods, if statements, and a do-while loop.1.Examine equality, relational, and logical operators used with conditional expressions.2.Write if selection type statements to include one-way, two-way, and nested forms.3.Write a do-while loop structure.4.To be able to debug a program of syntax and logic errors.5.To be able to use the debug step-into feature to step through the logic of the program and to see how the variables changes values.6.Instead of prompting the user to enter both regular hours and overtime hours, you will instead only ask the user to input the number of total hours worked for the week. Of course, you will still need to prompt for the hourly pay rate and employee name. The output results should be the same as if the user separately entered regular hours and overtime hours, but asking the user only for the number of total hours will require you to make some modifications to the code logic. 7.8.In this assignment we are also going to apply a complex set of withholding rules that are in proportion to the graduated Federal Income Tax Withholding (FITW) percentages from an actual Internal Revenue Service (IRS) tax schedule*. The following set of withholding rules should be “embedded” into the appropriate section of your code logic (CalcFedTax method):9.If weekly gross is overand up throughwithhold this amount for FITW: 0504.8115% of gross pay amount504.811222.12$75.72 plus 28% of amount over $504.811222.122550.00$276.57 plus 31% of amount over $1222.122550.005545.19$688.21 plus 36% of amount over $2550.005545.19----------$1766.48 plus 39.6% of amount over $5545.1910.11.* The set of withholding rules implemented in this lab exercise is purely hypothetical, but provides a good exercise in applying multi-way selection statements. In reality, when you set up your federal income tax withholding with your employer, you actually fill out an IRS Form W-4 indicating your number of “Personal Allowances” based on your individual financial situation. Your employer withholds an amount based on a more complex set of rules built into the IRS “Personal Allowances Worksheet” that helps you determine your number of Personal Allowances. If you’re curious, you can check out the latest Federal Income Tax Schedule tables, Form W-4, and Personal Allowances Worksheet at www.irs.gov.12.13.Social Security tax withholding will be calculated as 7.65% of gross pay. (Use a named constant for this standard tax deduction.)14.Net pay = gross pay – (federal income tax withholding + social security tax withholding)15.16.17.Follow the hierarch chart below and use the method names indicated in the hierarchy chart. Notice that this lab includes a do-while loop. In addition, notice that the PayCalcs method calls CalcFedTax. Finally, notice that the GetUserChoice will prompt the user to see if the loop continues.18.19.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question