Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write complete program for the following problem and compile and run and make sure that the program works correctly Weekly Payroll. Write a Java program

image text in transcribed
image text in transcribed
Write complete program for the following problem and compile and run and make sure that the program works correctly Weekly Payroll. Write a Java program to create a weekly payroll using the following Tax Guide Your program should request the following information: employee id number (integer), hourly wage, hours worked per week, number of withholding exemptions, marital status (use a code 0 and 1 or m and s) and previous year-to-date earnings Program should then use a loop to process information for each employee until -1 entered for the employee id number. After data has been read, it should calculate and display the following information: employee id number, current earning, current year to date earnings (after current earnings is added), FICA taxes, Income tax withheld, and take home check amount. The above items should be calculated as follows hourly wage times hours worked (with time and a half after 40 hours) Current earnings: Year-to-date earnings: Previous year-to-date earnings plus current earnings sum of 6.2% of the current earnings for the week (Social Security benefits Tax) and 1.45% of the current earnings for the week (Medicare tax). FICA tax: Federal income tax withheld: Subtract $51.92 from the current earnings for each withholding exemptions and use this adjusted weekly income and the following tables depending on the marital status. Take home pay: current earnings - FICA taxes-Federal income tax withheld Table 1: Federal income tax withheld for a single person paid weekly Adjusted Weekly Income $0 to $51 Over $51 to $517 Over $517 to $1,105 Over $1,105 to $2,493 Over $2,493 to $5,385 Over $5,385 Income Tax Withheld $0 15% of the amount over S51 $69.90 + 28% of excess over $517 $23454 +31% of excess over $1,105 $664.82 + 36% of excess over $2.493 $1,705.94 + 39.6% of excess over$5,385

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_2

Step: 3

blur-text-image_3

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

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions