C++ Program      Create a program that will compute the taxes owed from the table above. This assignment assumes Single filers. Prompt for the taxable income for a float value, a double value, and an integer value.  Create a function template as described in section 16.2 and use the template to create methods that calculates the taxes. Display the tax rate found for the reported taxable income (from Column 1) Display the taxes owed for each of the 3 variable types entered. The resulting taxes need to be the same data type as the given income. Be sure to include the upper and lower range values in the calculations. I.E - Be sure that $9875 can be calculated and not bypassed. Deliverable is a working CPP program.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 10RQ
icon
Related questions
Question

C++ Program   

  Create a program that will compute the taxes owed from the table above. This assignment assumes Single filers.

  1. Prompt for the taxable income for a float value, a double value, and an integer value. 
  2. Create a function template as described in section 16.2 and use the template to create methods that calculates the taxes.
  3. Display the tax rate found for the reported taxable income (from Column 1)
  4. Display the taxes owed for each of the 3 variable types entered. The resulting taxes need to be the same data type as the given income.

Be sure to include the upper and lower range values in the calculations. I.E - Be sure that $9875 can be calculated and not bypassed.

Deliverable is a working CPP program.

Single filers
Tax rate
Taxable income
Tax owed
bracket
10%
$0 to $9,875
10% of taxable income
$987.50 plus 12% of the amount
12%
$9,876 to $40,125
over $9,875
$4,617.50 plus 22% of the amount
22%
$40,126 to $85,525
over $40,125
$85,526 to
$14,605.50 plus 24% of the amount
24%
$163,300
over $85,525
$163,301 to
$33,271.50 plus 32% of the amount
32%
$207,350
over $163,30O
$207,351 to
$47,367.50 plus 35% of the amount
35%
$518,400
over $207,350
$156,235 plus 37% of the amount
37%
$518,401 or more
over $518,400
Transcribed Image Text:Single filers Tax rate Taxable income Tax owed bracket 10% $0 to $9,875 10% of taxable income $987.50 plus 12% of the amount 12% $9,876 to $40,125 over $9,875 $4,617.50 plus 22% of the amount 22% $40,126 to $85,525 over $40,125 $85,526 to $14,605.50 plus 24% of the amount 24% $163,300 over $85,525 $163,301 to $33,271.50 plus 32% of the amount 32% $207,350 over $163,30O $207,351 to $47,367.50 plus 35% of the amount 35% $518,400 over $207,350 $156,235 plus 37% of the amount 37% $518,401 or more over $518,400
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,