Question

Compute the income tax due on taxable income entered by the user, given the data as shown in the following table. Be sure to

0 0
Add a comment Improve this question Transcribed image text
Answer #1

#include <iostream> //Required Header file

using namespace std;

int main()
{

int incomeOfUser; // declaring a int variable for storing the value of income
cin>>incomeOfUser; // taking the value from the user

int tax = 0; // declaring a int variable tax for calculating the income tax

if(incomeOfUser<0) // error checking
{
cout<<"Incorrect income(Negative number)"<<endl;
}
// calculating tax according to the given conditions
else if(incomeOfUser>= 0 && incomeOfUser < 50000)
{
tax = 0 + incomeOfUser * (0.05);
}else if(incomeOfUser >=50000 && incomeOfUser < 100000)
{
tax = 2500 + (incomeOfUser-50000) * (0.07);
} else
{
tax = 6000 + (incomeOfUser-100000) * (0.09) ;
}

cout<<"The income tax due on taxable income is : "<<tax<<endl;

return 0;
}

Add a comment
Know the answer?
Add Answer to:
Compute the income tax due on taxable income entered by the user, given the data as...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Use Dev-C++ to create a program using the program requirements listed below. Write a program that...

    Use Dev-C++ to create a program using the program requirements listed below. Write a program that displays the income tax due in the state of Euphoria on a taxable income (in whole dollars) entered by the user, according to the tax table shown in Table 11.1. Table 11.1 Tax table Taxable Income From -To Tax Due $0 - $49,999 $0 + 5% of amount over $0 $50,000 - $99,999 $2,500 + 7% of amount over $50,000 $100,000... $6,000 + 9%...

  • :1-40 Tax Rates. Based on the amounts of taxable income below, compute the federal income tax...

    :1-40 Tax Rates. Based on the amounts of taxable income below, compute the federal income tax payable in 2018 on each amount assuming the taxpayers are married filing a joint return. Also, for each amount of taxable income, compute the average tax rate and the marginal tax rate a. Taxable income of $30,000. b. Taxable income of $100,000 c. Taxable income of $375,000 d. Taxable income of $700,000.

  • 1:1-40 Tax Rates. Based on the amounts of taxable income below, compute the federal income tax...

    1:1-40 Tax Rates. Based on the amounts of taxable income below, compute the federal income tax payable in 2018 on each amount assuming the taxpayers are married filing a join return. Also, for each amount of taxable income, compute the average tax rate and the marginal tax rate. a. Taxable income of $30,000. b. Taxable income of $100,000. c. Taxable income of $375,000. d. Taxable income of $700,000.

  • Using the corporate tax rate table, calculate the taxable amount if a corporation's taxable income is...

    Using the corporate tax rate table, calculate the taxable amount if a corporation's taxable income is 16,000,000 It Pays This Plus This Percentage Average Tax If a Corporation's Amount on the on the Excess over the Rate at Taxable income is Base of the Bracket Base (Marginal Rate) Top of Bracket Up to $50,000 $ 0 15% 15.0% $50,000-$75,000 7,500 25 18.3 $75,000-$100,000 13,750 34 22.3 $100,000-$335,000 22,250 39 34.0 $335,000-$10,000,000 113,900 34 34.0 $10,000,000 $15,000,000 3,400,000 35 34.3 $15,000,000-$18,333,333...

  • Based on the amounts of taxable income​ provided, compute the federal income tax payable in 2019...

    Based on the amounts of taxable income​ provided, compute the federal income tax payable in 2019 on each amount assuming the taxpayers are married filing a joint return.​ Also, for each amount of taxable​ income, compute the average tax rate and the marginal tax rate. a)Taxable income of $72,000. b)Taxable income of $135,000. c)Taxable income of $370,000. d) Taxable income of $680,000. Married, Filing Joint and Surviving Spouse If taxable income is: The tax is: Not over $19,400 . ....

  • TABLE 2.1 Corporate Tax Rate Schedule + + + + Range of taxable income 0 to...

    TABLE 2.1 Corporate Tax Rate Schedule + + + + Range of taxable income 0 to $ 50,000 50,000 to 75,000 75,000 to 100,000 100,000 to 335,000 335,000 to 10,000,000 10,000,000 to 15,000,000 15,000,000 to 18,333,333 Over 18,333,333 Base tax $ 0 7,500 13,750 22,250 113,900 3,400,000 5,150,000 6,416,667 Tax calculation (Marginal rate X amount over base bracket) (15% X amount over $ 0) (25 X amount over 50,000) (34 X amount over 75,000 amount over 100,000) amount over 335,000)...

  • Schedule Z-Head of Household If taxable income is over: But not over: The tax is: $...

    Schedule Z-Head of Household If taxable income is over: But not over: The tax is: $ 0 $ 13,850 10% of taxable income $ 13,850 $ 52,850 $1,385 plus 12% of the excess over $13,850 $ 52,850 $ 84,200 $6,065 plus 22% of the excess over $52,850 $ 84,200 $160,700 $12,962 plus 24% of the excess over $84,200 $160,700 $204,100 $31,322 plus 32% of the excess over $160,700 $204,100 $510,300 $45,210 plus 35% of the excess over $204,100 $510,300 -...

  • The tax is: If taxable income is over: But not over: 000 $ 0 $ 13,850...

    The tax is: If taxable income is over: But not over: 000 $ 0 $ 13,850 10% of taxable income $ 13,850 $ 52,850 $1,385 plus 12% of the excess over $13,850 $ 52,850 $ 84,200 $6,065 plus 22% of the excess over $52,850 $ 84,200 $160,700 $12,962 plus 24% of the excess over $84,200 $160,700 $204,100 $31,322 plus 32% of the excess over $160,700 $204,100 $510,300 $45,210 plus 35% of the excess over $204,100 $510,300 - $152,380 plus 37%...

  • (Corporate income tax) Boisjoly Productions had taxable income of $19.1 million. a. Calculate Boisjoly's federal income...

    (Corporate income tax) Boisjoly Productions had taxable income of $19.1 million. a. Calculate Boisjoly's federal income taxes by using the corporate tax rate structure in the popup window, E b. Now calculate Boisjoly's average and marginal tax rates. c. What would Boisjoly's federal income taxes be if its taxable income was $29.9 million? d. Now calculate Boisjoly's average and marginal tax rates with taxable income of $29.9 million. a. Calculate Boisjoly's federal income taxes. The total tax due is $...

  • QUESTION 32 Using the corporate tax rate table, calculate the taxable amount if a corporation's taxable...

    QUESTION 32 Using the corporate tax rate table, calculate the taxable amount if a corporation's taxable income is 83,000 It Pays This Plus This Percentage Average Tax If a Corporation's Amount on the on the Excess over the Rate at Taxable income is Base of the Bracket Base (Marginal Rate) Top of Bracket Up to $50,000 $ 0 15% 15.0% $50,000-$75,000 7,500 25 183 $75,000-$100,000 13,750 34 22.3 $100,000-$335,000 22,250 39 34.0 $335,000-$10,000,000 113,900 34 34.0 $10,000,000-$15,000,000 3,400,000 35 34.3...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT