Ask Java Expert


Home >> Java

You helped me on a previous Java assignment. Was hoping for another assist on the following problem:

The 1040EZ is an IRS form for individuals to complete their income taxes. It is easy to complete, hence the "EZ" in the name. In addition to personal information, there are only 14 lines on the 1040EZ. The lines are shown in the Appendix A.

For your final assignment, you will create a program to allow the user to complete the 1040EZ form. You will notice that some lines on the form require the user to enter information. See lines 1, 2, 3, 7, 8, and 11. Other lines are calculations, which your program needs to perform for the user. See lines 4, 5, 6, 9, 10, 12, 13, and 14.

To complete a program for the 1040EZ you would need to know conditions, but we have not covered them in this course. Conditions will be covered in the next course. So, to make this project easier we will make a few changes to the form. Here are the changes.

Line 5 will always be $10,150.
On Line 10 it states to look up the amount on a tax table. For this project, Line 10 will be computed as the value of Line 6 multiplied by 0.15.
Line 13 is completed if the user gets a refund and Line 14 is completed if the user owes money. Let's remove Line 14 and say that if the value in Line 13 is negative, the user owes money.
All of the values (entered by the user and computed) must be stored in an array.
Below is some sample output. Review it carefully. When you see a ">>" it means that what is to the right of it was entered by the user. Notice that the user does not enter computed values: The program computes them and displays the results.
Sample Output 1
Welcome to the 1040EZ Tax Form Application
1 Wages, salaries, and tips. This should be shown in box 1 of your Form(s) W-2. Attach your Form(s) W-2.
>> 100050.00
2 Taxable interest.
>> 510.15
3 Unemployment compensation and Alaska Permanent Fund dividends.
>> 0.00
4 Add lines 1, 2, and 3. This is your adjusted gross income. $100,560.15
5 If no one can claim you (or your spouse if a joint return), enter $10,150 if single; $20,300 if married filing jointly. See back for explanation. 10,150
6 Subtract line 5 from line 4. If line 5 is larger than line 4, enter -0-. This is your taxable income. $90,410.15
7 Federal income tax withheld from Form(s) W-2 and 1040.
>> 7,876.25
8 Earned income credit (EIC)
>> 0.00
9 Add lines 7 and 8. These are your total payments and credits. $7,876.25
10 Tax. Multiply Line 6 by 0.15. $13,561.52
11 Health care: individual responsibility
>> 0.00
12 Add lines 10 and 11. This is your total tax. $13,561.52
13Subtract line 12 from line 9. If result is positive, it is your refund. If result is negative, it is the amount you owe. $-5,685.27

Appendix A.

Line #

Line

1

Wages, salaries, and tips. This should be shown in box 1 of your Form(s) W-2.
Attach your Form(s) W-2.

2

Taxable interest.

3

Unemployment compensation and Alaska Permanent Fund dividends.

4

Add lines 1, 2, and 3. This is your adjusted gross income.

5

If no one can claim you (or your spouse if a joint return), enter $10,150 if single; $20,300 if married filing jointly. See back for explanation.

6

Subtract line 5 from line 4.

7

Federal income tax withheld from Form(s) W-2 and 1040.

8

Earned income credit (EIC)

9

Add lines 7 and 8. These are your total payments and credits.

10

Tax. Multiply Line 6 by 0.15.

11

Health care: individual responsibility

12

Add lines 10 and 11. This is your total tax.

13

If line 9 is larger than line 12, subtract line 12 from line 9. This is your refund.

Java, Programming

  • Category:- Java
  • Reference No.:- M92397617
  • Price:- $15

Priced at Now at $15, Verified Solution

Have any Question?


Related Questions in Java

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As