Write a program to compute personal income tax

Assignment Help JAVA Programming
Reference no: EM131585593

Problem Description:

The United States federal personal income tax is calculated based on filing status and taxable income. There are four filing statuses: single filers, married filing jointly, married filing separately, and head of household. The tax rates vary every year. Table 1 shows the rates for 2009.

If you are, say, single with a taxable income of $10,000, the first $8,350 is taxed at 10% and the other $1,650 is taxed at 15%. So, your tax is $1,082.5.

Table 1

2009 U.S. Federal

Personal Tax Rates

Married Filing

Marginal
Tax Rate

Si ngle

Jointly or
Qualified
Widow(er)

Married Filing
Separately

Head of
Household

10%

$0 - $8,350

$0 - $16,700

$0 - $8,350

$0 - $11,950

15%

$8,351- $33,950

$16,701 - $67,900

$8,351 - $33,950

$11,951 - $45,500

25%

$33,951 - $82,250

$67,901 - $137,050

$33,951 - $68,525

$45,501 - $117,450

28%

$82,251 - $171,550

$137,051 - $208,850

$68,525 - $104,425

$117,451 - $190,200

33%

$171,551 - $372,950

$208,851 - $372,950

$104,426 - $186,475

$190,201 - $372,950

35%

$372,951+

$372,951 +

$186,476+

$372,951 +

You are to write a program to compute personal income tax. Your program should prompt the user to enter the filing status and taxable income and compute the tax. Enter 0 for single filers, 1 for married filing jointly, 2 for married filing separately, and 3 for head of household.

Use dialog boxes for input & output.
Here are numbers for you to check your program:
Sample 1:
Enter the filing status: 0
Enter the taxable income: 100000 Tax is 21720.0

Reference no: EM131585593

Questions Cloud

Comprehension of management roles : The purpose of this assignment is to increase learners' comprehension of management roles, viewpoints, and theories.
Examine the case of a class on the reality of ducks : After Example, we examine the case of a class on The Reality of Ducks. Below are listed the students and the books on reserve each seeks.
Create a professional presentation in kaltura suggesting : Create a professional presentation in Kaltura suggesting how IT could be used to enhance the company's strengths and lessen the company's weaknesses.
Contracts and property law : Conduct a case analysis covering Contracts and Property Law surrounding the company Apple.
Write a program to compute personal income tax : write a program to compute personal income tax. Your program should prompt the user to enter the filing status and taxable income and compute the tax
Did the authors display the data : Did the authors display the data?Does the results table stand-alone (i.e., are you able to interpret the study from it?) Why or why not?
Given a calculation of both npv : Given a calculation of both NPV (a dollar amount) and IRR (a % return on investment), which do you think is better and why?
Create a basic query that will extract information from book : Create a basic query that will extract the following information from the books, title id, title, publisher, pubdate, edition and cost. Order by publisher.
How many nodes are left in the tree of partial solutions : How many different binary search trees can be made with three pieces of data? What about with four pieces of data?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd