Question
Objective The purpose of this assignment is to test your familiarity with Java I/O statements and if-else statements. This assignment also tests your understanding of
Objective The purpose of this assignment is to test your familiarity with Java I/O statements and if-else statements. This assignment also tests your understanding of the basics of Java programming and execution, like top-down control flows, translating the logical solution to a problem into code, and integrating the new concepts you just learned with the older concepts, including data types and variables, declaration, initialization and assignments, arithmetic operators, etc. Please submit your source code (i.e. your java file) on Canvas under HW1. Problem Its the year 2030 and H&R Block is facing a software crisis! Tax season is coming up in a few months, and their current tax solution is not compatible with the new rules that the IRS has imposed. They have hired you as a software engineer to program their new system. Your task is to calculate the income tax a person owes to the IRS. To do so you can use the following table Tax Bracket Annual Income Tax Owed to the IRS 1 Under $10,000 $0 2 $10,000 - $24,999 15 % of the annual income 3 $25,000 - $74,999 $3,750 + 20% of the amount exceeding $25,000 4 $75,000 - $149,999 $15,000 + 25% of the amount exceeding $75,000 5 $150,000 - $299,999 $37,500 + 30% of the amount exceeding $150,000 6 Above $300,000 $45,000 + 35% of the amount exceeding $300,000 Your program should take as input, the annual income of a user and print the tax bracket and total tax owed to the IRS. You may round your answers to 2 decimal places. Sample Run 1 Please enter your annual income ($): $66700 ************************************* Your tax bracket is 3 Total taxes owed to the IRS: $12090.00 ************************************ Sample Run 2 Please enter your annual income ($): $16200 ************************************* Your tax bracket is 2 Total taxes owed to the IRS: $2430.00 ************************************
Step 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