Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ programming. please explain the program with comments. Write a program with at least FIVE (5) functions inclusive of function main (using pass-by- value or
c++ programming. please explain the program with comments.
Write a program with at least FIVE (5) functions inclusive of function main (using pass-by- value or pass-by-reference or combination of both) that able to calculate tax based on the condition as in Table 1. Marital Status Married Table 1 Condition for Tax Calculation Income Group Tax Rate Tax Exemption for (%) Each Children Less than 10,000 1% 1000 More than 10,000 and less than 20,000 2% 500 More than 20,000 and less than 50,000 3% 300 More than 50.000 5% 200 Less than 10,000 1% More than 10,000 and less than 20,000 5% More than 20,000 and less than 50,000 10% Assume no children More than 50.000 15% Single Example of calculation. 1. Let say, a married man of income 8,000 with 5 children. How much tax that he has to pay? Net income = income tax exemption (8,000 - 5 x 1000) = 3,000 Tax = 0.01 x 3,000 = 30 2. Let say, a married woman of income 100,000 with no child. How much tax that she has to pay? Net income = income - tax exemption (100,000 - 0) = 100,000 Tax=0.05 x 100,000 = 5,000 3. Let say, a single woman of income 100,000. How much tax that she has to pay? Net income = income (100,000) = 100,000 Tax = 0.15 x 100,000 = 15,000 On top of tax calculation, tax payers are given options whether to contribute for zakat or charity. For example, if the amount of tax is 30 and the tax payer pay 50 for zakat, then prompt a message saying that he does not need to pay for tax. Otherwise, display a message saying that he has to pay the balance for tax
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