Question: using c + + define a function FindTaxPercent ( ) that takes two integer parameters as a person's salary and the number of dependents, and

using c++ define a function FindTaxPercent() that takes two integer parameters as a person's salary and the number of dependents, and returns the person's tax percent as a double. The tax percent is returned as follows:
Tax percent
\table[[Salary,1 dependent,2-5 dependents,>5 dependents],[350000,0.18,0.07,0],[350000-824999,0.29,0.18,0.18],[825000,0.37,0.29,0.29]]
Ex: If the input is 325000,0, then the output is:
 using c++ define a function FindTaxPercent() that takes two integer parameters

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!