Simplified Version Of 2018 Alabama Income Tax Computation
Project Oyervie In this project, yo will use your knowledge (question, selection, printf and…
Project Oyervie In this project, yo will use your knowledge (assignment, selection, printf and scanf) to implement a simplified version of 2018 Alabama income tax computation. (The actual 2018 Alabama income tax return form can be found at httos://revenue.alabamagov/wp-content/uploads/2019/01/18f40blkpdf and the instuctions book can be found at https://revenue.alabamagov/wp-content/uploads/2019/01/18f40bk pdf if ou are interested.) It is a simplified version because it does not compute the adjusted gross income or the amount of itemized deductions.
The pzogram will first prompt the user for the following ive pieces of information Filing status: an integer from 1 through 4 as shown below. If the user enters a number other than 1 through 4, the * e program prints out an error mes 1. Single 2. Married fling jointly 3. Marnied fling separately 4. Head of family * Number of dependents: a non-negative integer. If the user enters a negative integer, the program will reset * Adjusted gross income: a non-negative integer. If the user enters a negative integer, the program will reset * Itemized deduction: a non-negative integer. If the user enters a negative integer, the program will reset it to 1t to 0. it to 0. From now on, we refer to adjusted gross income simply as income. 0.
The program will compare use the larger one to deduct If the user chooses to use the standard deduction, the user just needs to enter 0 for the itemized deduction. the itemized deduction with the standard deduction (to be * Federal tax deduction: a non-negative integex If the user enters a negative integer, the pxogram will reset it to 0
The program will then compute the standard deduction, and use the standard deduction computed or the itemized deduction entered, whichever is larger. The standard deduction table is shown below Standard Deduction 2 You can waite a 21-way selection to get the standard deduction from the income.