Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write the code in java with comments if possible, and kindly upload the text instead of the code image. Thanks Add comments and tax
Please write the code in java with comments if possible, and kindly upload the text instead of the code image. Thanks
Add comments and tax logic worker type houlry salary 1099 taxes are paid in brakets by all workers except 1099 workers less than 25,000 a year rate 10% taxs 25,001 - 35,000 a year rate 15% taxs 35,001 - 95,000 a year rate 25% taxs greater than 95,001 rate 35% taxs rate: $15.00 Hours week 1 worked: 40 Hours week 2 worked: 45 Total hours = week 1 + week 2 Overtime = total hours - 80 yearly salary = (rate * 40) * 52 family size = 1 If salary if medical selceted if family size > 1 if yearly salay >= 35,000 pay = (total hours * rate) - 500 else pay = ((80 * rate) + (Overtime * (rate * 1.5))) - 500 else if yearly salay >= 35,000 pay = (total hours * rate) - 100 else pay = ((80 * rate) + (Overtime * (rate * 1.5))) - 100 else if yearly salay >= 35,000 pay = total hours * rate else pay = (80 * rate) + (Overtime * (rate * 1.5)) else if Total hours > 80 Add comments and tax logic worker type houlry salary 1099 taxes are paid in brakets by all workers except 1099 workers less than 25,000 a year rate 10% taxs 25,001 - 35,000 a year rate 15% taxs 35,001 - 95,000 a year rate 25% taxs greater than 95,001 rate 35% taxs rate: $15.00 Hours week 1 worked: 40 Hours week 2 worked: 45 Total hours = week 1 + week 2 Overtime = total hours - 80 yearly salary = (rate * 40) * 52 family size = 1 If salary if medical selceted if family size > 1 if yearly salay >= 35,000 pay = (total hours * rate) - 500 else pay = ((80 * rate) + (Overtime * (rate * 1.5))) - 500 else if yearly salay >= 35,000 pay = (total hours * rate) - 100 else pay = ((80 * rate) + (Overtime * (rate * 1.5))) - 100 else if yearly salay >= 35,000 pay = total hours * rate else pay = (80 * rate) + (Overtime * (rate * 1.5)) else if Total hours > 80Step 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