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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started