Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program 2 - Schedule A of the 1040 Federal Tax Return CSCI 251-Spring 2018 Problem Statement: It is that time of year again - tax

image text in transcribedimage text in transcribedimage text in transcribed

Program 2 - Schedule A of the 1040 Federal Tax Return CSCI 251-Spring 2018 Problem Statement: It is that time of year again - tax season! Before April 15th arrives you decide to write a program to compute Schedule A (Itemized Deductions) for Form 1040 Federal Income Tax. To correctly calculate the total itemized deductions, you will first need to prompt the user for his/her adjusted gross income (AGI). To simplify the input required for Schedule A, you will write a program that will prompt the user for the amount of each section rather than each line (see below). Prompt for the following input Adjusted Gross Income (AGI) Medical and Dental Expenses (lines 1-4 on Schedule A) Taxes You Paid (lines 5-9 on Schedule A) Interest You Paid (lines 10- 15 Schedule A) Gifts to Charity (lines 16-19 Schedule A) Casualty and Theft Losses (line 20 Schedule A) Job Expenses and Certain Miscellaneous Deductions (lines 21-27 Schedule A) Other Miscellaneous Deductions (line 28 Schedule A) After reading in the input you must verify the user has entered a valid number for each entry. Any value less than zero, including the AGl, is considered invalid. Output an entry was invalid and do not continue calculating Schedule A. Note, when checking for this condition, your code must use only one if-statement that incorporates logical operators (&&, 11 or ) to decide whether or not to continue. For Medical and Dental Expenses, the value entered must be processed so that only the amount which exceeds 10% of the AGI is deducted. For example, if your income is $50,000, you may only deduct the amount which exceeds $5000 (i.e, $50,000 0.10 $5,000). So, if your expenses are $6500 then you may deduct ($6500 $5000), or $1,500. If your expenses are $4000 then you may NOT deduct anything. Use an if-statement to determine what can be deducted. Also, you must consider that if you were born before 1/2/1952, you may deduct that amount which exceeds 7.5%, rather than 10% (i.e., if you made $50,000, you may deduct anything over $3750 since $50,000 0.075 $3750). You will need to prompt for the person's birth year! If it is 1952 or earlier, use 7.5% instead of 10%. Similarly, Job Expenses and Certain Miscellaneous Deductions may only be considered if they exceed 2% of your AGI. So again, if your AGI is $50,000, you may only deduct that amount which exceeds ($50,000 .02) or $1,000. So, if your expenses/deductions are $3,250, you may deduct ($3,250 -$1000) or $2,250. If your expenses/deductions are $500, you may not deduct anything. As in the case of medical and dental expenses, use an if-statement. Finally, add up the total itemized deductions: medical and dental expenses, taxes you paid, interest you paid, gifts to charity, casualty and theft losses, job expenses, tax preparation fees, other expenses, and other miscellaneous deductions. If the total exceeds your AGI then your total itemized deductions are capped at your AGI. Assuming your AGI is $50,000, if your total itemized deductions add up to $51,647 (say you bought a VERY expensive home and are deducting a lot of interest) then you may only claim $50,000 as your total itemized deductions Input Data: Adjusted Gross Income (AGI) Medical and Dental Expenses (lines 1-4 on Schedule A) Taxes You Paid (lines 5-9 on Schedule A) Interest You Paid (lines 10-15 Schedule A) Gifts to Charity (lines 16- 19 Schedule A) . . . Program 2 - Schedule A of the 1040 Federal Tax Return CSCI 251-Spring 2018 Problem Statement: It is that time of year again - tax season! Before April 15th arrives you decide to write a program to compute Schedule A (Itemized Deductions) for Form 1040 Federal Income Tax. To correctly calculate the total itemized deductions, you will first need to prompt the user for his/her adjusted gross income (AGI). To simplify the input required for Schedule A, you will write a program that will prompt the user for the amount of each section rather than each line (see below). Prompt for the following input Adjusted Gross Income (AGI) Medical and Dental Expenses (lines 1-4 on Schedule A) Taxes You Paid (lines 5-9 on Schedule A) Interest You Paid (lines 10- 15 Schedule A) Gifts to Charity (lines 16-19 Schedule A) Casualty and Theft Losses (line 20 Schedule A) Job Expenses and Certain Miscellaneous Deductions (lines 21-27 Schedule A) Other Miscellaneous Deductions (line 28 Schedule A) After reading in the input you must verify the user has entered a valid number for each entry. Any value less than zero, including the AGl, is considered invalid. Output an entry was invalid and do not continue calculating Schedule A. Note, when checking for this condition, your code must use only one if-statement that incorporates logical operators (&&, 11 or ) to decide whether or not to continue. For Medical and Dental Expenses, the value entered must be processed so that only the amount which exceeds 10% of the AGI is deducted. For example, if your income is $50,000, you may only deduct the amount which exceeds $5000 (i.e, $50,000 0.10 $5,000). So, if your expenses are $6500 then you may deduct ($6500 $5000), or $1,500. If your expenses are $4000 then you may NOT deduct anything. Use an if-statement to determine what can be deducted. Also, you must consider that if you were born before 1/2/1952, you may deduct that amount which exceeds 7.5%, rather than 10% (i.e., if you made $50,000, you may deduct anything over $3750 since $50,000 0.075 $3750). You will need to prompt for the person's birth year! If it is 1952 or earlier, use 7.5% instead of 10%. Similarly, Job Expenses and Certain Miscellaneous Deductions may only be considered if they exceed 2% of your AGI. So again, if your AGI is $50,000, you may only deduct that amount which exceeds ($50,000 .02) or $1,000. So, if your expenses/deductions are $3,250, you may deduct ($3,250 -$1000) or $2,250. If your expenses/deductions are $500, you may not deduct anything. As in the case of medical and dental expenses, use an if-statement. Finally, add up the total itemized deductions: medical and dental expenses, taxes you paid, interest you paid, gifts to charity, casualty and theft losses, job expenses, tax preparation fees, other expenses, and other miscellaneous deductions. If the total exceeds your AGI then your total itemized deductions are capped at your AGI. Assuming your AGI is $50,000, if your total itemized deductions add up to $51,647 (say you bought a VERY expensive home and are deducting a lot of interest) then you may only claim $50,000 as your total itemized deductions Input Data: Adjusted Gross Income (AGI) Medical and Dental Expenses (lines 1-4 on Schedule A) Taxes You Paid (lines 5-9 on Schedule A) Interest You Paid (lines 10-15 Schedule A) Gifts to Charity (lines 16- 19 Schedule A)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions