Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is organizational learning, and how can managers promote it?

Answered: 1 week ago

Question

What are the determinants of cash cycle ? Explain

Answered: 1 week ago

Question

love of humour, often as a device to lighten the occasion;

Answered: 1 week ago

Question

orderliness, patience and seeing a task through;

Answered: 1 week ago

Question

well defined status and roles (class distinctions);

Answered: 1 week ago