Question
For your first project you are to create a tax calculator. You are to build your program, input the info for each person to generate
For your first project you are to create a tax calculator. You are to build your program, input the info for each person to generate a personal tax report for them. You will hand in your code, your interface, and a screenshot demonstration of EACH of the users tax reports.
You must output the amount of federal tax, state tax, local tax, and fica tax. Netpay must also be shown. This output must either be in a textbox or preferably a label. No Messageboxes!
Your interface should be easy to use and clearly labeled so an inexperienced user could use it with no confusion. Your program may only have one button to perform all needed calculations.
Tax Rules:
You will be given the following items for each person: gross income, amount they contribute to a 401K,if they are a city resident or not. Based on this info you are to extrapolate all other data by applying rules.
Tax Rates
Federal rate depends on fedAGI(federal Adjusted Gross Income)
fedAGI = gross - a constant standard deduction of 10,500 then minus 401K contribution
There is also a normal AGI which is used to calculate all other taxes.
AGI = gross minus 401k contributions
Tax rate = 0% if fedAGI <= 8500
10% if fedAGI is between 8501 and 10,000
12% if fedAGI is between 10001 and 20000
13.5% is fedAGI is between 20001 and 29000
15% if fedAGI is between 29001 and 50000
18% if fedAGI is between 50001 and 125000
25% if fedAGI is between 125001 and 200000
30% if fedAGI is between 200001 and above
State Tax is always 3.07% of AGI
Local Tax is dependent of the residency of the person.
City Resident = 2% of AGI
Non city = 1% of AGI
FICA = 6.2% of AGI on the first 75000. Example if the AGI was 78,000, the FICA would be calculated ONLY on the first 75,000 of that. FICA = 75000 *.062
Netpay is normal AGI minus all taxes.
People to test your program with. You must enter ALL of these peoples info(including name) into your program through its interface only. You may not hardcode any of their info into the source code.
Maddie
Gross Income: 41000
401K: 2500
City Resident
Doug
Gross Income: 54500
401K: 4500
Non City Resident
Noah
Gross Income: 24000
401K: 0
Non City Resident
Lindsay
Gross Income: 38500
401K: 3000
City Resident
Spoony
Gross Income: 87000
401K: 9000
City Resident
Project 1 P Code
Input gross from textbox
Input 401k from textbox
Calc AGI (gross minus 401k)
Calc fedAGI (gross minus 401k minus SD)
*Order of tax calculation doesnt make any difference *
Calc statetax (.0307 of normal AGI)
Calc fedtax * you will need a large If test block*
If fedagi <= 8500 then
Fedtax = fedagi times 0
Elseif fedagi >8500 and fedagi <= 10000 then
.. *you will complete the rest, make sure two sided tests are complete on both sides of the And clause!*
Calc localtax * use the check in check.zip to do this, place a checkbox control on your form and use the if test provided in check.zip*
You will use regular agi for localtax
Calc ficatax *this is a binary test!*
If less than or equal to 75000 then ficatax is .062 times agi. Else, ficatax is .062 times 75000
Calc netpay agi minus all 4 taxes you have calculated. Note: It is based on agi NOT gross!
Output your 4 taxes and the netpay to your interface for display to the user
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started