In practical life, the employees get salaries and pay taxes honestly. Sometimes, the process of drawing salaries and payment of taxes may lead to some interesting situation. Suppose, a person draws salary of Rs. 10,000 per month. A certain percentage of tax is charged on that amount, which is deducted every month. But if the salary of the person is more than Rs. 10,000 per month, then the tax rate is different. Similarly if a person is getting Rs. 20,000 per month, he/she would be charged more under a different tax rate slab. The interesting situation develops if there is an anomaly in the tax rates i.e. a person who is getting higher salary takes home lesser money as compared to the other person with less gross salary. To further elaborate it, we suppose that there is company 'C' where 100 or less than 100 persons are employed. The salaries of the employees and their tax rates are known to us. We are required to list those unlucky persons, who are getting lesser take-home salary (net salary) than their colleagues with less gross salaries but lower tax rates. Given tax brackets and given employees gross salaries, determine those employees who actually get less take-home salary than others with lower initial income. Suppose the tax deduction law states that  No tax will be deducted for persons with salaries ranging from Rs. 0 to Rs. 5,000 per month or in other words tax deduction rate is 0%.  5% tax deduction will be made from the persons with salaries ranging from Rs. 5,001 to Rs. 10,000 per month.  For persons with salaries ranging from Rs. 10,001 to Rs. 20,000, a 10% tax deduction rate would be employed.  For persons with salaries ranging from Rs. 20,001 and higher, 15% tax deduction would be made Write a C++ code of above mentioned scenario using double dimensional arrays

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

In practical life, the employees get salaries and pay taxes honestly. Sometimes, the process of drawing salaries
and payment of taxes may lead to some interesting situation. Suppose, a person draws salary of Rs. 10,000 per
month. A certain percentage of tax is charged on that amount, which is deducted every month. But if the salary
of the person is more than Rs. 10,000 per month, then the tax rate is different. Similarly if a person is getting Rs.
20,000 per month, he/she would be charged more under a different tax rate slab. The interesting situation
develops if there is an anomaly in the tax rates i.e. a person who is getting higher salary takes home lesser money
as compared to the other person with less gross salary.
To further elaborate it, we suppose that there is company 'C' where 100 or less than 100
persons are employed. The salaries of the employees and their tax rates are known to us.
We are required to list those unlucky persons, who are getting lesser take-home salary
(net salary) than their colleagues with less gross salaries but lower tax rates.
Given tax brackets and given employees gross salaries, determine those employees who
actually get less take-home salary than others with lower initial income.
Suppose the tax deduction law states that
 No tax will be deducted for persons with salaries ranging from Rs. 0 to Rs. 5,000 per month or in other
words tax deduction rate is 0%.
 5% tax deduction will be made from the persons with salaries ranging from Rs. 5,001 to Rs. 10,000 per
month.
 For persons with salaries ranging from Rs. 10,001 to Rs. 20,000, a 10% tax deduction rate would be
employed.
 For persons with salaries ranging from Rs. 20,001 and higher, 15% tax deduction
would be made
Write a C++ code of above mentioned scenario using double dimensional arrays

Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Time complexity
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education