Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

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

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

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

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

Simple order processing systemquestion given the classes

Simple Order Processing System Question: Given the classes Ship (with getter and setter), Speedboat, and SpeedboatTest. Answer the following questions: Refine the whole application (all classes) and create Abstract class ...

Can someone kindly help me to consider whether java

Can someone kindly help me to consider whether Java provides the facility of operator overloading? If it does, may you kindly describe how overloading operators can be accomplished? If not, may you kindly describe why yo ...

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

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

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

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

  • 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