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.
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..
|