Question

In PYTHON: The 1040EZ is an IRS form for individuals to complete their income taxes. It...

In PYTHON: 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. Let’s 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.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

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.

//program

# Program to automate 1040EZ tax form.
def main():
# initialize "array"
tax = [0 for i in range(14)]
print("Welcome to Mr. Anuj's 1040EZ Tax Form Application")
tax[1] = float(input(" 1. Wages, salaries and tips. This should be shown in
box 1 of your Form(s) W-2." +
" Attach your Form(s) W-2: $"))
tax[2] = float(input(" 2. Taxable interest: $"))
tax[3] = float(input(" 3. Unemployment compensation and Alaska Permanent
Fund dividends: $"))
tax[4] = tax[1] + tax[2] + tax[3]
print(" 4. Add lines 1, 2 and 3. This is your adjusted gross income: $
{:06.2f}".format(tax[4]))
# Per instructions, line 5 is always 10,150
tax[5] = 10150.00
print(" 5. If no one can claim you (or your spouse if a joint return), enter
$10,l50 if single;" +
"$20,300 if married filing jointly: ${:06.2f}".format(tax[5]))
tax[6] = tax[4] - tax[5] if tax[5] < tax[4] else 0
print(" 6. Subtract line 5 from line 4. If line 5 is larger than line 4,
enter -0-. " +
"This is your taxable income: ${:06.2f}".format(tax[6]))
tax[7] = float(input(" 7. Federal income tax withheld from Form(s) W-2 and
1040: $"))
tax[8] = float(input(" 8. Earned income credit (EIC): $"))
tax[9] = tax[7] + tax[8]
print(" 9. Add lines 7 and 8. These are your total payments and credits: $
{:06.2f}".format(tax[9]))
tax[10] = tax[6] * 0.15
print("10. Tax. Multiply Line 6 by 0.15: ${:06.2f}".format(tax[10]))
tax[11] = float(input("11. Health care: individual responsibility: $"))
tax[12] = tax[10] + tax[11]
print("12. Add lines 10 and 11. This is your total tax: $
{:06.2f}".format(tax[12]))
tax[13] = tax[9] - tax[12]
if tax[13] < 0:
tax[13] = tax[13] * (-1)
print("13. Subtract line 12 from line 9. You owe this amount in
additional tax: ${:06.2f}".format(tax[13]))
else:
print("13. Subtract line 12 from line 9. This is your refund: $
{:06.2f}".format(tax[13]))
main()

Add a comment
Know the answer?
Add Answer to:
In PYTHON: The 1040EZ is an IRS form for individuals to complete their income taxes. It...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Form 1040 Complete Patty's Form 1040 Form Department of the Treasury-Internal Revenue Service (99) 1040 U.S....

    Form 1040 Complete Patty's Form 1040 Form Department of the Treasury-Internal Revenue Service (99) 1040 U.S. Individual Income Tax Return2018 OMB No. 1545-0074 IRS Use Only Filing status: Single Your first name and initial Patty Your standard deduction: None Your social security number 466-33-1234 Last name Banyan If joint return, spouse's first name and initial Last name Spouse's social security number Full-year health care coverage or exempt (see inst.) Spouse standard deduction: None Home address (number and street). If you...

  • need help with daughter's homework. 2011 ON 1945 Uncome Tax Return for Single and Joint Filers...

    need help with daughter's homework. 2011 ON 1945 Uncome Tax Return for Single and Joint Filers With No Dependents 1040EZ 5411331 342 he's so curry number Bewure the B enero 54 Ciprus rumber and low Pr o n Campaign CA 96214 en Frisco CA C 24 - 3627 For all ) W-2 Income 1 Wapes salaries and tips. This should be shown in box l of your Form Altach your Forms) W-2 1 28.290 bu 2 155 DO Forms W-3...

  • Need help with blank box on 11 and are the box filled out correctly? Abigal CAbby)...

    Need help with blank box on 11 and are the box filled out correctly? Abigal CAbby) Baer 4S is a sigle mother working as a dvilian accountant for the US Army. Her Social Security number is 676-73-331 1 and she lives at 3456 Alamo Way, San Antonio, TX 78249. Helen, Abby's 18-year-old daughter (Social Security number 676-73-3312), is a dependent child living with her mother, and she does not qualifty for the child tax credit due to her age but...

  • Please fill in this tax return. Hi, it’s Shady Slim again. I just got back from...

    Please fill in this tax return. Hi, it’s Shady Slim again. I just got back from my 55th birthday party, and I’m told that you need some more information from me in order to complete my tax return. I’m an open book! I’ll tell you whatever I think you need to know.      I had to move this year after getting my job at Roca Cola. I moved on February 3 of this year, and I worked my job at Roca...

  • Please answer all the questions. Thanks. Based on Exhibit 4-2, Form 1040. Please see attached Forms1040...

    Please answer all the questions. Thanks. Based on Exhibit 4-2, Form 1040. Please see attached Forms1040 for 2018 and 2017. Note three similarities and three differences between the 2017 tax form and the 2018 draft form 1040 Three differences: 2. 3. Three similarities: 2. 3. Comment 1040U, Individual Income Tax Retum21sr Home addressnuber and str you have a PO bex, see instrutions 1 Single Mamied fling jointly leven if only ane had income Check only one3Married fling separately. Enter spouse's...

  • Required: ∙ Use the following information to complete Keith and Jennifer Hamilton’s 2018 federal income tax...

    Required: ∙ Use the following information to complete Keith and Jennifer Hamilton’s 2018 federal income tax return. If any information is missing, use reasonable assumptions to fill in the gaps. ∙ Form 1040, supporting schedules, and instructions to the forms and schedules can be found at the IRS website (www.irs.gov). Facts: 1. Keith Hamilton is employed as an airline pilot for Flyby Airlines which is based in Las Vegas, Nevada, but he flies out of Toledo Metro Airport. Jennifer is...

  • Comprehensive Problem 5-2A Bea Jones (birthdate March 27, 1984) moved from Texas to Florida in December...

    Comprehensive Problem 5-2A Bea Jones (birthdate March 27, 1984) moved from Texas to Florida in December 2017. She lives at 654 Ocean Way, Gulfport, FL 33707. Bea's Social Security number is 466-78-7359 and she is single. Her earnings and income tax withholding for 2018 for her job as a manager at a Florida shrimp-processing plant are: Earnings from the Gulf Shrimp Co. $43,200 4,600 Federal income tax withheld State income tax withheld Bea's other income includes interest on a savings...

  • help me with 15-20 and also the schedule 1 form with the blanks that have 10,...

    help me with 15-20 and also the schedule 1 form with the blanks that have 10, 21, 22, 31a, and 36 Note: This problem is for the 2018 tax year. Alfred E. Old and Beulah A. Crane, each age 42, married on September 7, 2016. Alfred and Beulah will file a joint return for 2018. Alfred's Social Security number is 111-11-1109. Beulah's Social Security number is 123-45-6780, and she adopted "old" as her married name. They live at 211 Brickstone...

  • What is the amount for qualified business deduction I tried $0, $4000.00 and $$3,250 Required information...

    What is the amount for qualified business deduction I tried $0, $4000.00 and $$3,250 Required information [The following information applies to the questions displayed below.] John and Sandy Ferguson got married eight years ago and have a seven-year-old daughter, Samantha. In 2019, John worked as a computer technician at a local university earning a salary of $152,000, and Sandy worked part-time as a receptionist for a law firm earning a salary of $29,000. John also does some Web design work...

  • complete a 1040 (2019) Donna Jones, an administrative assistant. resides at 123 Main Street, Lawrenceville, NJ...

    complete a 1040 (2019) Donna Jones, an administrative assistant. resides at 123 Main Street, Lawrenceville, NJ V0048. She is single and has no dependents. Her social security number is 123-44-5500. She received $26,159.00 in wages and had $2.200.00 of federal income tax withheld during 2019. Donna also had $390.00 in interest income from her bank account and made $150.00 of charitable contributions during the year. Prepare her 2019 1040. One box UTU Treasury Internal Revenue Service ) U.S. Individual Income...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT