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

  Find access time for this system is how many clock cycles

imagine that a certain cache-based system experiences a cache hit rate of 98%. A cache access requires 2 clock cycles, and main-memory access requires 40 clock cycles.

  What is the aim of a firewall

Name and explain two of the network devices used to create a network. What is the purpose of a firewall?

  Which will be executed had these names

How would I write down a shell script to locate executable files? This script takes a list of file names from the command line and determines which would be executed had these names been given as commands.

  Modify compound interest program

Modify compound interest program

  Questionassume you want to sort a relation of 40

questionassume you want to sort a relation of 40 gigabyteswith 4 kilobyte blocksusing memory size of 40 megabytes.

  What are the steps to move all of email folders

What are the steps to move all of email folders from my MSN Hotmail account to an external hard drive without having to open each email individually?

  Discuss summary of the services bench fitness center

At their eight locations, Bench fitness currently has one PC in the office and one PC in the entrance area. These computers are peer networked, but all are more than 5 years old.

  Computer architecture 1 give the register transfer notation

computer architecture 1 give the register transfer notation for a simple calculator which supports the operations -

  New network equipment based on the above description

A fast and reliable PLC communications network is important to ensure that production remains uninterrupted. If equipment failure occurs, time is spent on troubleshooting and repair.

  What is the memory operations dominate execution time

What is  the memory operations dominate execution time

  Design a new villian value called badguy

Also suppose the existence of a function copyVillian (as declared below) that takes two Villian params, one called orig and the other called copycat, and makes copycat a deep copy of orig.

  Write down program that models an employee

Write down program that models an employee

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