Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

  1. Line 5 will always be $10,150.
  2. 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.
  3. Line 13 is completed if the user gets a refund and Line 14 is completed if the user owes money. Lets remove Line 14 and say that if the value in Line 13 is negative, the user owes money.

In addition to these requirements there is one requirement concerning how you code this project. 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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Shouhong Wang, Hai Wang

1st Edition

1612330150, 978-1612330150

More Books

Students also viewed these Databases questions