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

  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