Lab 3
Start Now

Overview

For this assignment, each student will write two programs to do the same thing. One program will interact with the user using pop-up windows, and the other program will interact with the user using the console window.

Details

The United States Internal Revenue Service collects taxes from those who earn income in the United States. Ignoring all tax deductions and loopholes, those who earn more are require to contribute a higher percentage of their income. The following table shows the tax brackets for 2015.

Rate Single Filers Married Joint Filers
10% $0 to $9,225 $0 to $18,450
15% $9,226 to $37,450 $18,451 to $74,900
25% $37,451 to $90,750 $74,901 to $151,200
28% $90,751 to $189,300 $151,201 to $230,450
33% $189,301 to $411,500 $230,451 to $411,500
35% $411,501 to $413,200 $411,501 to $464,850
39.6%$413,201+ $464,851+

Note that the first $9,225 of all single filers income is taxed at the 10% rate, the next $28,225 (= 37,450 - 9,225) is taxed at 15%, etc... For example, taxes due for a single filer with $50,000 in income would be $8,293.75, which is calculated as follows:

0.10 * 9225 + 0.15 * 28225 + 0.25 * 12550

Write a program that asks the user if they are a single filer or married joint filer. It should then ask for their expected earned income for 2015 and display the estimated taxes they will be required to pay by March 15, 2016.

You may develop your own technique for determining if the user is a single or married joint filer, but it must be obvious to the user when the program is run (provide clear instructions).

The first program should be written in a class called Lab3GUI and should interact with the user using pop-up windows (JOptionPane). The second program should be written in a class called Lab3Console and should interact with the user using the console window.

A sample program interaction for the console version is shown below:

Are you a single filer or a married joint filer (enter 's' or 'j'): s
Enter an estimate of your earned income for 2015: 50000.00

Your estimated taxes for 2015 are: $8293.75

Both programs must be created in a package named the same as your MSOE username (e.g., mine is taylor). If you do not remember how to create a project, package, or class, please ask your instructor.

Lab Deliverables

See your professor's instructions for details on submission guidelines and due dates.
Dr. Dennis' class: See Blackboard
See Dr. Rebenistch for instructions
Dr. Taylor's class: See below
See Prof. Ung for instructions
Dr. Yoder's submission instructions
If you have any questions, consult your instructor.

Acknowledgement

This laboratory assignment was developed by Dr. Chris Taylor.

Tuesday, 16-Feb-2016 09:54:09 CST