Question: Need Help on Java H/W. Thanks Here is the code for the last assignment, the one we have to update for this assignment below. import

Need Help on Java H/W. Thanks

Need Help on Java H/W. Thanks Here is the code for the

last assignment, the one we have to update for this assignment below.

Here is the code for the last assignment, the one we have to update for this assignment below.

import java.util.Scanner; public class Income { public static void main(String args[]){ double income; double tax; Scanner input = new Scanner(System.in); System.out.print("Input your income:"); income = input.nextInt();

if(income > 0 && ++income = 6001 && ++income = 27951 && ++income = 67701 && ++income = 141251 && ++income 307050){ tax = income * (38.6/100); System.out.printf("income tax for a single " + "perosn making $%.2f is $%.2f%n", income, tax); } else { System.out.println("Wrong Input; try again."); } } }

LAB ASSIGNMENTS Please focus on the "formatting" of your output. Make sure to prompt the user appropriately and round the output accordingly. UPDATE ASSIGNMENT 15 TASK 1 Create methods for each portion of the program that does the tax calculation. Use get/set method naming conventions where it applies date Program: Allow the user to input dollar amount in a OptionPane showlnputDialog and output in JOptionPane.showMessageDialog. Program should not display error messages if the user presses the X or Cance outton program should display a Joption Pane,showMessageDialog box prompting he use MAKE SURE PROGRAM S STILL BROKEN INTO INDIVIDUAL METHOD 13 Task: write a program that computes a single filer's income tax burden Single Filers Income TAX RATE Up to $6000 10% $6,001-$27,950 15% $27,951 $67,700 27% $67,701 $141,250 30% $141,251 $307,050 35% $307, 051 or more 38.6%

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!