Question

In: Computer Science

Ask the user for W2 income amount, any interest, deduction and paid tax amount.

Ask the user for W2 income amount, any interest, deduction and paid tax amount. Calculate the actual tax amount based upon the given income and data . Continuously ask the user to enter another set of data until the user chooses to exit the program

Requirements:

 1. The program must produce similar output.

 2. The tax rate is 25% for total income that is less than or equal 10000 and 50% otherwise.

 3. The tax amount is calculated based upon the actual income (income + interest – deduction)

 4. Print out “due” or “refund” based upon the proper tax amount result

Solutions

Expert Solution

#include
#include
#include
#include
#include
#include
#include
using namespace std;


int main() {
   //Declaring variables
double income,deductions,tax,amt;
   double interestrate;
  
   cout<<"Enter the income (<=0 to exit) :$";
   cin>>income;
   while(income>0)
   {
       cout<<"Enter Interest rate:%";
       cin>>interestrate;
      
       cout<<"Enter Amount of deductions :$";
       cin>>deductions;
      
       amt=(income+income*(interestrate/100))-deductions;
       if(amt<10000)
       {
           tax=amt*.25;
       }
       else
       {
           tax=amt*.50;
       }
      
       cout<<"Tax amount is :$"<       
   cout<<"\n\nEnter the income (<=0 to exit) :$";
   cin>>income;
   }   
   return 0;
}

output:


Related Solutions

Federal income tax allows a deduction for any state income tax paid during the year. In...
Federal income tax allows a deduction for any state income tax paid during the year. In addition, the state of Alabama allows a deduction from its state income tax for any federal income tax paid during the year. The federal corporate income tax is equivalent to a flat rate of 34% of the taxable federal income and the Alabama rate is 5% of the taxable state income. Both the federal and Alabama taxable income for a certain corporation are $1,000,000...
Federal income tax allows a deduction for any state tax paid during the year. In addition,...
Federal income tax allows a deduction for any state tax paid during the year. In addition, the state of Alabama allows a deduction from its state income tax for any federal tax paid during the year. The federal corporate income tax is equivalent to a flat rate of 34% and the Alabama state tax rate is a flat 5%. Both the Alabama and the federal taxable income for a corporation is $1,000,000 before either tax is paid. Because each tax...
If the amount of interest paid in any given year reduces the amount of income that...
If the amount of interest paid in any given year reduces the amount of income that is subject to federal taxes and the after-tax return on equity is increasing with the amount of debt financing used to finance the acquisition, then a) the increased return to equity reflects an increase in the market value of the property b) the increased return to equity reflects the present value of the tax shields associated with debt c) the increased return to equity...
Because the income tax structure is progressive, the amount of taxes paid is a _____. a....
Because the income tax structure is progressive, the amount of taxes paid is a _____. a. smaller fraction of income in expansions than in contractions b. decreasing function of income in both expansions and contractions c. larger fraction of income in expansions than in contractions d. constant fraction of income throughout the business cycle e. constant amount at all levels of output and income
Because the income tax structure is progressive, the amount of taxes paid is a _____. a....
Because the income tax structure is progressive, the amount of taxes paid is a _____. a. ​ decreasing function of income in both expansions and contractions b. ​ constant fraction of income throughout the business cycle c. ​ constant amount at all levels of output and income d. ​ smaller fraction of income in expansions than in contractions e. ​ larger fraction of income in expansions than in contractions
Write a program that will ask the user to enter the amount of a purchase. The...
Write a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 5 percent and the county sales tax is 2.5 percent. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the...
Do changes in the balance of the deferred income tax account affect the amount paid by...
Do changes in the balance of the deferred income tax account affect the amount paid by the company for income taxes? How is the payment affected?
1.          What is the amount of Taxpayer’s interest deduction that would be allowable for the...
1.          What is the amount of Taxpayer’s interest deduction that would be allowable for the current year assuming Taxpayer incurred the following, and assuming that Taxpayer itemizes deductions? Interest on loan used to purchase land for investment (assume no net investment income) $18,000 Interest on loan used to purchase primary personal residence $6,000 Interest on loan used to purchase boat $500 Interest on loan to purchase 100 shares of General Auto $3,000 a.             $27,000 b.             $6,000 c.             $27,500 d.            ...
Determine the amount of the standard deduction for each of the following taxpayers for tax year...
Determine the amount of the standard deduction for each of the following taxpayers for tax year 2019: Christina, who is single. Adrian and Carol, who are filing a joint return. Their son is blind. Peter and Elizabeth, who are married and file separate tax returns. Elizabeth will itemize her deductions. Karen, who earned $1,100 working a part-time job. She can be claimed as a dependent by her parents. Rodolfo, who is over 65 and is single. Bernard, who is a...
Determine the amount of the standard deduction for each of the following taxpayers for tax year...
Determine the amount of the standard deduction for each of the following taxpayers for tax year 2017: Christina, who is single. Adrian and Carol, who are filing a joint return. Their son is blind. Peter and Elizabeth, who are married and file separate tax returns. Elizabeth will itemize her deductions. Karen, who earned $1,100 working a part-time job. She can be claimed as a dependent by her parents. Rodolfo, who is over 65 and is single. Bernard, who is a...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT