Question: this if for intro to programming C so may you please use double to define a function and anything that would be simple to understand
The 1988 United States Federal Tax Schedule was the simplest in recent times. It had four categories, and each category had two rates. Here is a summary (dollar amounts are taxable income): Category Single Head of Household Married, Joint Married, Separate Tax 15% of first $17,850, then 28% of the additional income 15% of first $23,900, then 25% of additional income 15% of first $29,750, then 25% of additional income 15% of first $14,875, then 28% of additional income For example, a single wage earner with a taxable income of $20,000 owes: 0.15 * $17,850 + 0.28 + ($20,000-$17,850) And a single earner with taxable income of $10,500 owes: 0.15 * $10,500 Write a program that lets the user specify the tax category and the taxable income and then calculates, then displays the tax. For this program use the following guidelines: 1- Separate each tax category as a case for a switch statement, i.e. 'S' for single. 2- Define the tax brackets and the percentages as constant macros. 3- Create functions for the computation of tax for each category. (your functions must have a prototype along with a function definition) 4- Your output should look decent make sense and be informative
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
