The second programming project comprises writing a program

Assignment Help Computer Engineering
Reference no: EM13464454

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

Questions Cloud

As a sales manager for a baby food concern you want to : as a sales manager for a baby food concern you want to evaluate the ability of your representatives to obtain good
In conclusionnbsphaving good ethics means having good : what did you learn from your classmates posting?what additional questions do you have after reading the posting?what
How does the work breakdown structure wbs help to reduce : how does the work breakdown structure wbs help to reduce risks? how often should a risk analysis be conducted? why are
Describe how you would implement it using an open-loop : consider a 500-gallon tank that needs to be filled when the level goes below 25 gallons and will stop when the level
The second programming project comprises writing a program : the second programming project involves writing a program to calculate state income tax for a single taxpayer that uses
A research team conducted a study of soft-drink preferences : a research team conducted a study of soft-drink preferences among residents in a test market prior to an advertising
State term standard error why is standard error significant : define the term standard error. why is the standard error important in research using sample distributions? consider
The phase of hemostasis that is triggered by direct injury : 1. the phase of hemostasis that is triggered by direct injury in vascular smooth muscle causing constriction of the
Define and thoroughly describe terms null hypothesis and : hypothesis testing allows researchers to use sample data taken from a larger population to draw inferences i.e.

Reviews

Write a Review

Computer Engineering Questions & Answers

  How to adapt for large-scale transnational it projects

What aspects of your project communications planning would you adapt for large-scale transnational IT projects in that the project teams and other stakeholders are geographically dispersed (say in India, Canada, China and Brazil) and having differ..

  Recognize five potential risks for new project

Recognize five potential risks for new project, being sure to write some negative and positive risks. Give a detailed description of each risk and propose strategies for addressing risk.

  Ethical dialectical process of thinking state

Ethical Dialectical Process of Thinking state

  Find how long can this keep the resources

Managing a project and I have an $850,000 budget. For the project,resources include four developers and on project manager.

  Characterize the company''s personnel as its human asset

Why do we characterize the company's personnel as its human asset? Explain and exemplify.

  Create a simplify credit card transaction management program

Create a simplify credit card transaction management program.

  Find the monthly amount of interest paid and remaining debt

You have just purchased a stereo system that costs $1000 on the following credit plan: no down payment, an interest rate of 18% per year (and hence 1.5% per month), and monthly payments of $50.

  Make a view called v_no_cost

Using the ITD410_P1 database you created for the Independent Project in Unit 1, write scripts in a file known  ITD410_P3.SQL to create the following views. Remember to include a uses clause at the top of your script file to use the ITD410_P1 datab..

  Resourcenbsppatton-fuller community hospital networking

resourcenbsppatton-fuller community hospital networking virtual organization or an organization you are familiar with

  What would be the transmission rate

Supposed two TCP connections are present over some bottleneck link of rate R bps. Both connections have a huge file to send (in the same direction over the bottleneck link). The transmissions of the files start at the similar time. What is the tra..

  Write the code for an ordered linked list module

Select Makefile from the file list and hit Compile/Validate. This will compile ordereList.c and main.c, producing an executable named main. If you double click main, the program will execute and should produce the output shown in the example below..

  Explain difference between a state graph and a search tree

For artificial intelligence systems to adapt to new situations, the first task is to develop a method for machines to resolve problems 'on their own'.

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