Question: Write a program that takes as input your gross salary and your total saving and uses another function named to calculate your tax. This tax

Write a program that takes as input your gross salary and your total saving and uses another function named to calculate your tax. This tax calculator function should take as parameters the gross salary as well as the total savings amount. The tax calculator function should use separate sub-functions for each tax slab. The tax is calculated as follows: The savings is deducted from the gross income to calculate the taxable income. Maximum deduction of savings can be Rs. 100,000, even though the amount can be more than this. For up to 100,000 as taxable income the tax is 0 (Slab 0) Beyond 100,000 to 200,000 tax is 10% of the difference above 100,000 (Slab 1) Beyond 200,000 up to 500,000 the net tax is the tax calculated from Slab 0 and Slab 1 and then 20% of the taxable income exceeding 200,000 (Slab 2) If its more than 500,000, then the tax is tax from Slab 0, Slab 1, Slab 2 and 30% of the amount exceeding 500,000.

put in C++ program

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!