my code---- need helppublic classTaxCalculator {}public static voidmain(String[] args) {Scanner input =newScanner(System.in);int= input.nextInt();System.out.printf("Please file your...

1 answer below »






my code---- need help










public class

TaxCalculator {
}



public static void




main(String[] args) {
Scanner input =

new

Scanner(System.in);









int

= input.nextInt();









System.out.printf("Please file your taxes.");












//Request the taxable rates and income












int

money = input.nextInt();



















if
(num >=

1000

&& num <>

9999) {



int

last = num %

10


;












//if(money >= 0 || money <= 1100)="">












int

money

1100

+

1.2

x

11000


;












//else if(money >= 1100 || money >= 11000 {












int

money

5147

+

2.2

x

44725


;












//else if(money >= 16290 || money >= 95375 {












int

money

16290

+

2.4

x

95375


;












//else if(money >= 37104 || money >= 182100 {












int

money

37104

+

3.2

x

182100


;












//else if(money >= 52832 || money >= 231250 {












int

money

52832

+

3.5

x

231250


;












//else if(money >= 17423825|| money >= 578125 {












int

money

17423825

+

3.7

x

578125


;









}



else{
System.out.println("taxes are owned");









}



Tax Brackets CSCI 201 – Programming Assignment 02 Objectives · Use the 3-step problem-solving process · Practice using conditionals (if-else statements) · Maybe learn about progressive tax rates Overview Do you pay the same tax rate on your entire income? Can getting a raise cause you to bring home less due to being in a higher tax bracket? Not really. Write a program that prompts the user to enter their taxable income as a whole dollar amount. The program determines how much taxes are owed based on the table below (2023 rates for single filers). The output of the program is a dollar sign, and the owed taxes rounded to two decimal places. The System.out.printf method is the easiest way to round to two places and add commas for numbers greater than 1,000. For taxable incomes less than or equal to zero, zero tax is owed. Tax rate Taxable income bracket Tax owed 10% $0 to $11,000. 10% of taxable income. 12% $11,001 to $44,725. $1,100 plus 12% of the amount over $11,000. 22% $44,726 to $95,375. $5,147 plus 22% of the amount over $44,725. 24% $95,376 to $182,100. $16,290 plus 24% of the amount over $95,375. 32% $182,101 to $231,250. $37,104 plus 32% of the amount over $182,100. 35% $231,251 to $578,125. $52,832 plus 35% of the amount over $231,250. 37% $578,126 or more. $174,238.25 plus 37% of the amount over $578,125. Below are three separate sample runs of a completed program. Your program should produce the same output and should work for all other input values. You may assume that only valid integers will be provided but test your own code. Enter taxable income as a whole dollar amount: 7777Note: Highlighted numbers are example input values. $777.70Your code must work for any valid integers. Enter taxable income as a whole dollar amount: 77777 $12,418.44 Enter taxable income as a whole dollar amount: 777777 $248,109.49 Code Organization Create a new Java project in IntelliJ for this assignment and call it PA02. Keep your code very organized this semester. Inside the project, create a new class and call it TaxCalculator. Make sure to type the capital letters exactly. Create your file in the default package (i.e., no package declaration). At the top of the file, type your full name, your CWID, the assignment number, and the date inside a professional comment block. Also, inside this comment block, list any persons or resources that assisted you in completing the assignment. Instructions Follow the instructions in the overview and output format sections to design your code. Study the sample output. Your output must match verbatim to pass the auto-grader, including spaces. You may assume that only valid, numeric input is given. Submission Submit your .java file to Web-CAT before the deadline. You may resubmit as many times as you like before the deadline to try and improve your score. Submissions after the deadline will be assessed a late penalty. Web-CAT will fail any upload that does not match the exact filename and class name (case sensitive), so be sure to match the instructions in naming your file and be sure to upload the .java file (and not the .class file). Grading This assignment is worth 25 points. Up to 5 points may be deducted by the instructor for bad code style, formatting, or lack of comments. Up to 25 points will be assigned by Web-CAT for passing the given test case(s). If you are having trouble passing test cases, ask for help from the SIs or the instructor. In order to have time to correct mistakes, plan to submit well before the deadline. Collaboration policy Please see the syllabus for the full policy. This course permits many forms of collaboration, including with course staff and classmates. However, you must be careful to collaborate only as authorized below. Activity Course staff Classmates/others CSCI 201 graduates Discuss concepts ✔ ✔ ✔ Acknowledge collaboration ✔ ✔ ✔ Expose solutions to ✔ no ✔ View solutions from no no no Plagiarize code from no no no Assignment design Use this space to plan out the organization of your code before you start typing it.
Answered 3 days AfterMar 21, 2023

Answer To: my code---- need helppublic classTaxCalculator {}public static voidmain(String[] args)...

Kamala answered on Mar 24 2023
49 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here