Docsity

ECEC201 Midterm Project 1 - Advanced Programming, Study Guides, Projects, Research of Electrical Engineering

Toggle sidebar
bg1
Description of Term Project 1
It is based on HW2 Problem 2 on taxes. but made more realistic by using
actual IRS tables for the year 2025. Every year , in addition to filing tax
returns by April 15th for the previous year (presently 2024), the tax payers
have to start paying ‘Estimated Tax’ for the current year (presently 2025) in
instalments. The tax tables for 2025 were also revised upwards from 2024 to
account for inflation. A copy of the tax tables for 2025 have been provided.
The taxes are at different rates varying from 10% to 37% as shown in the
table. This applies for income like salaries, interest, income from rental
property etc. This type of income is subject to “standard deduction” shown in
the right column of the page
IRS also provides a ‘worksheet’ in case a taxpayer’s income also includes
‘dividends’ ( from stocks) and ‘Capital Gains’ ( realized by selling stocks or
real estate like houses). The dividends and capital gain are taxed at a lower
rate varying between 0% and 20% as shown at the bottom of the tax table
under “Long Term Capital Gains and Qualified Dividends”. A copy of the 2024
worksheet which accounts for both types of income (corrected for 2025) has
been also provided
The taxpayers are divided into 4 types of ‘Status’ - ‘Single’ , ‘Head of
Household’, ‘Married filing Jointly’ and ‘Married filing Separately’ for whom
there are separate tables for both types of income. The tax rates are the
same (10% - 37%) for all types but the applicable slabs are different. The
rates for dividends and capital gains are the same (0%,15%,20%) but again
the applicable slabs are different. The net effect is that for a given income
“Married filing Jointly’ pays the lowest tax, ‘Married filing separately’ and
‘Singles’ pay the highest tax and “Head of Household’ pays somewhere in
between
The standard deduction follows a similar pattern being most beneficial for
‘Married filing jointly’
The different categories of income to be considered are salaries , interest,
rental income, dividends and capital gain
The total income (L1 in the worksheet) is given by
L1= salaries + interest + rental income +dividend + capital gain – standard
deduction
pf3

Partial preview of the text

Download ECEC201 Midterm Project 1 - Advanced Programming and more Study Guides, Projects, Research Electrical Engineering in PDF only on Docsity!

Description of Term Project 1

It is based on HW2 Problem 2 on taxes. but made more realistic by using actual IRS tables for the year 2025. Every year , in addition to filing tax returns by April 15th^ for the previous year (presently 2024), the tax payers have to start paying ‘Estimated Tax’ for the current year (presently 2025) in instalments. The tax tables for 2025 were also revised upwards from 2024 to account for inflation. A copy of the tax tables for 2025 have been provided. The taxes are at different rates varying from 10% to 37% as shown in the table. This applies for income like salaries, interest, income from rental property etc. This type of income is subject to “standard deduction” shown in the right column of the page IRS also provides a ‘worksheet’ in case a taxpayer’s income also includes ‘dividends’ ( from stocks) and ‘Capital Gains’ ( realized by selling stocks or real estate like houses). The dividends and capital gain are taxed at a lower rate varying between 0% and 20% as shown at the bottom of the tax table under “Long Term Capital Gains and Qualified Dividends”. A copy of the 2024 worksheet which accounts for both types of income (corrected for 2025) has been also provided The taxpayers are divided into 4 types of ‘Status’ - ‘Single’ , ‘Head of Household’, ‘Married filing Jointly’ and ‘Married filing Separately’ for whom there are separate tables for both types of income. The tax rates are the same (10% - 37%) for all types but the applicable slabs are different. The rates for dividends and capital gains are the same (0%,15%,20%) but again the applicable slabs are different. The net effect is that for a given income “Married filing Jointly’ pays the lowest tax, ‘Married filing separately’ and ‘Singles’ pay the highest tax and “Head of Household’ pays somewhere in between The standard deduction follows a similar pattern being most beneficial for ‘Married filing jointly’ The different categories of income to be considered are salaries , interest, rental income, dividends and capital gain The total income (L1 in the worksheet) is given by L1= salaries + interest + rental income +dividend + capital gain – standard deduction

L2 = dividend L3=capital gain Derive formulae for L4 through L25 following formulae given on the worksheet which form your C code You are given one case of each type with values given for different types of income. (In the actual case they are obtained from a different form 1040 but you don’t have to go thru this extra work). Read in the incomes using scanf, run the code and obtain the estimated tax payable L25. Print out L18,L21, L22,L23,L24 and L Run the following test cases:

  1. Status : Married Filing jointly Salary 300, Interest 9, Rent 17, Dividend 150, Capital Gain 250, Tax payable 121676.50 (Verify your answer)
  2. Status : Single Salary 52, Interest 1, Rent 0 Dividend 500 Capital Gain 2,
  3. Status : Head of Household Salary 115, Interest 4, Rent 6, Dividend 3, Capital Gain 11.
  4. Status : Married Filing separately Salary 280, Interest 22, Rent 15,