

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


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: