Our final project will be a tax calculator much like the one we started with in Assignment 1. However, we will be making this version far more sophisticated in how it will take in user data, process and calculate taxes, and output all data generated. It will institute file reading, file writing,loops,arrays,logical tests,math calculations, and functions.
File Reading: You have been provided with an input file(input.txt) which you must read and use as the source of input for your program. Your program will have NO INTERFACE for the user. All code will be placed within the FORM LOAD event and needed functions.
This file supplies its data in comma delimited format
Name,gross,401k,city resident,State,age see below
Dave,9000,800,No,SC,45
Declare your file objects(sr,fs, and w) begin your file read loop.
Read a line from your file, use the split command to break up that line into the pieces of info that used to come from your interface based inputs.
Functions: ALL of the following calculations MUST be done as functions(AGI,FedAGI,SD, Fedtax,LocalTax,Fica tax,statetax, and netpay.)
Tax rules -
SD: Standard deduction for federal taxes. Based on age. If 65 or older then its 17500, otherwise its 12500
AGI: Gross - 401k (AGI is used for State,Local,Fica taxes and netpay)
FedAGI: gross - 401k - SD(standard deduction) (FedAGI is used only for Federal tax)
Fed tax: FedAGI 0-8500 is 0%,8501 to 10000 is 10%,10001 to 18000 is 12%, 18001 to 35000 is 15%,35001 to 60000 is 18%,60001 to 125000 is 25%, all values over 125000 is 30%
State Tax: Depends on state. Best way on testing is breaking this into and if test for each percentage. Example
If state = "AK" Or state = "AL" ....etc for 2 %
ElseIf state = [test for states in 3% bracket]
Else [we could leave this as an else as if your state isnt in the 2 brackets above it must be in this one]
States A - M 2%,N - O 3%,P - W 4% This function needs to accept ONLY a 2 letter postal abbreviation and AGI, see list of postal abbreviations below
https://en.wikipedia.org/wiki/List_of_U.S._state_abbreviations
Local Tax: Yes to city resident then its 2% of AGI, otherwise its 1% of AGI
FICA Tax: AGI 0 - 75000 6.2% , AGI above 75000 its 75000 times 6.2% flat
Net Pay: AGI - [Fedtax + statetax + localtax + FICA]
You will be graded not only on your functions working properly but also on how properly they are formed. Example: Declare the netpay function
Function calcnetpay (Byval totaltax as Double, Byval AGI as Double) As Double
Return AGI - totaltax
End Function
You would then call this function:
mynetpay = calcnetpay(mytotaltax,myagi)
Improperly declared parameters or function datatypes will result in a loss of points.
File Output: Once you are ready to output your results you will need to output on separate lines: (Name, fedtax,state,local, fica,netpay) Example:
Maddie
Federal Tax: 2000
State Tax: 1400
Local Tax: 750
Fica Tax: 2400
Netpay: 30000
Your program only needs to output to a single file. Provide a printout of this file and your source code to receive proper credit.
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme