Writing a program to calculate state income tax

Assignment Help JAVA Programming
Reference no: EM13810362

Instructions

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: EM13810362

Questions Cloud

Communication and crisis planning : Communication and Crisis Planning
Writing a program to calculate the terms : The third programming project involves writing a program to calculate the terms of the following sequence of numbers: 0 1 2 5 12 29 ... where each term of the sequence is twice the previous term plus the second previous term. The 0th term of the s..
Where in the process did the burger king fry flop : Go through the strategic process 5 steps for the Burger King fry. (Vision, Goals/Objectives, Crafting Strategy, Implementation Execution, Assess) Where in the process did the Burger King fry flop? How did MD’s combat the Burger King fry strategy?
Purchased the bond today and held it until maturity : Billy Bobs, Inc has a $1000 par value bond that is currently selling for $911.It has an annual coupon rate of 11.70%, paid semi-annually, and has 28-years remaining until maturity What would the annual yield to maturity be on the bond if you purchase..
Writing a program to calculate state income tax : 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..
Average tax rate that firm pays or marginal tax rate firm : Regarding income taxes, which do you think is more important (and why)-- the average tax rate that a firm pays or the marginal tax rate the firm is paying?
Basic assumptions of the organization : Describe the artifacts you find or recall that define the culture of the organization. Indicate what these artifacts reveal to you about the shared values and basic assumptions of the organization you selected.
What is cost of equity raised by selling new common stock : Trahan Lumber Company hired you to help estimate its cost of common equity. You obtained the following data: D1 = $1.25; P0 = $27.50; g = 5.00% (constant); and F = 6.00%. What is the cost of equity raised by selling new common stock?
Write a program that computes the average salary : The first programming project involves writing a program that computes the average salary for a collection of employees of different types. This program consists of four classes. The first class is the Employee class, which contains the employee's..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Carl has implemented two programs

Carl picks 20 random names and finds that P1 sorts them faster than P2. "We're using P1!" exclaims Carl. Why are you hesitant to commit?

  Design a method in a stack implementation

Design a method in a Stack implementation that allows the user to insert a new member to the "bottom" of a stack.

  What is the relationship between an exception and signaling

What is the relationship between an exception, signaling and an exception handler

  Program that reads customers information from a file

Write a program that reads customers information from a file, and creates a movie theatre seating with a number of rows and columns specified by a user. Then it will attempt to assign each customer to a seat in a movie theatre.

  Create an application that provides a solution

Create an application that provides a solution for problem 20.8 In addition to requirements specified in the description.

  Http://www.homeworkmarket.com/content/need-help-java-program

Write a Java application program that takes in user input from keyboard and calculate semester grade based on the scores. In this assignment, you are going to rewrite the program, instead of taking keyboard input, you will use dialog box to prompt..

  Write a program called render.java

Optionally you may wish to add texture mapping to make your models look more realistic, and you may want to supply the user some controls that affect the colours and lighting.

  Write a on the popularity of java

Write a 4-5-page research-oriented paper in APA format that focuses on the "Popularity of Java". The paper must cite at least 5 references, not including the textbook or the Bible.

  Implement avl trees that allows both iterative traversal

implement avl trees that allows both iterative traversal and recursive traversal.iterative traversal is fairly easy if

  Button to increase or decrease the number of the balls

Simulates a bouncing ball. Extend to allow mulitple balls. You can use the +I or -I button to increase or decrease the number of the balls and use teh Suspend and Resume buttoms to freeze the balls or resume bouncing. For each ball, assign a random c..

  Banking program that simulates the operation

Write a banking program that simulates the operation of your local bank. Declare the following class

  Define an applet and describe the usefulness of an applet

Define an Applet, and describe the usefulness of an applet. Please give a simple example

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