Calculate state income tax for a single taxpayer

Assignment Help JAVA Programming
Reference no: EM13809669

The second programming project involves writing a program to calculate state income tax for a single taxpayer that uses a GUI. The GUI should use the grid layout manager and should looks similar to the following:

The salary income, interest income, itemized deductions, exemptions and tax withheld are input to the program. When the Compute Refund button is clicked, the refund should be computed and displayed. Assume all inputs are in whole dollars.

The refund should be computed as follows. First compute the total gross income as the sum of the salary and interest income. Then compute the taxable income, which is the gross income less the itemized deductions and exemptions. The exemption amount is computed as the number of exemptions multiplied by $2700. Next compute the tax owed for the year according to the following tax table:

Taxable Income

Tax Owed

From

To

 

$0

$50,000

5% of taxable income

$50,000

$100,000

$2,500 + 7% of amount above $50,000

$100,000

--

$6,000 + 9% of amount above $100,000

Finally, compute the amount of the refund as the amount withheld minus the tax owed. Note that this amount will be negative if additional taxes are owed. Display this amount in the bottom text field rounded to the whole dollar.

If the data entered in any of the text fields is not numeric or not an integer value, the exception that will be thrown when attempting to convert to an integer should be caught, and an appropriate error message should be displayed using a JOptionPane popup window.

Reference no: EM13809669

Questions Cloud

Demographics and community resources : Demographics and Community Resources
Appropriate structure to use to program the statement : A home improvement store is giving a discount of 20% on all purchases of more than $250. Which of the following is the appropriate structure to use to program the statement
What will a firm earn under monopolistic competition : In a large city, a good, real-world example for perfect competition would be. A firm under monopolistic competition will earn
Profitability and stakeholder value for company : Draft a memo of 1,000-1,200 words explaining to your warehouse managers how effective supply chain design could help to enhance profitability and stakeholder value for the company, including the following:
Calculate state income tax for a single taxpayer : The second programming project involves writing a program to calculate state income tax for a single taxpayer that uses a GUI
Actual negotiaon situation : Apply the five negotiation skills to an actual negotiaon situation.  You have inherited from your parents half of an undivded interest in a summer home with some prime acreage on a nearby lake.
Write a paper on role of schools educational technologist : Write a 1-2 page paper on the role and responsibilities of the school's Educational Technologist. What do you foresee the role becoming? Where do you feel your strengths are and how well do you fit within the role?
Religion and society : RELIGION AND SOCIETY
Conduct the plenary sessions for sharing information : The planning for the community building session is almost complete. The last details are how to conduct the plenary sessions for sharing information across groups to develop key priorities and themes that will need to be addressed.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write java program to display results in java applet

Write down the java program which displays following results in java applet. Permits the user to enter three numbers (use JOptionPane for this) and prints out average of those value on screen.

  The reference to the abstract class

Explain what happens when the reference to the abstract class X is used to execute method M1( ). X obj = new Y( ); obj.M1( );

  Constructing a simple flowchart that describes simple logic

Constructing a simple flowchart that describes simple logic flow through a program. Translating the flowchart into pseudo code. Creating a simple module, based on the pseudo code created in step 2, which accepts a parameter and returns a value.

  Creates an array of six divsales objects

Write a program that creates an array of six DivSales objects. The program should ask the user to enter the sales for four quarters for each division.

  User interface menu using doubly linked lists

Each mNode defines the main menu item name, two links to its mNode neighbors (the previous and next mNode) and a link to its first submenu node.

  Write an application that uses an array to store

Write an application that uses an Array to store 10 messages of type String - You will store this Array with 10 messages

  Design a class named large integers

Design a class named largeIntegers such that an object of this class can store an integer of any number of digits.

  Quadratic that solves quadratic equations

Write a method called quadratic that solves quadratic equations and prints their roots. Recall that a quadratic equation is a polynomial equation in terms of a variable x of the form ax2 + bx + c = 0. The formula for solving a quadratic equation is ?..

  System.out.println statement

Display the value stored in num4 with the label "The result of the constant const1 multiplied by the constant const2 is " - Please use the precisely same character strings provided to you below in your System.out.println statements.

  Write a java method that repeatedly selects

Write a Java method that repeatedly selects and removes a random entry from an array until the array holds no more entries.

  Java project

Prompt the user for an int between lower and upper boundary.

  Write an application in which the user can enter a date

Write an application in which the user can enter a date using digits and slashes (for example, " 6/24/2012 " ), and receive output that displays the date with the month shown as a word

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