Thursday, 8 December 2016

Write a program that that declares a structure to store income, tax rate and tax of a person.....

Write a program that that declares a structure to store income, tax rate and tax of a person. the program defines an array of structure to store the record of five persons. it inputs income and tax rate of five persons and then displays the tax payable.

        
        #include <iostream.h>
        #include <conio.h>
         struct TaxPayable
         {
             double income, tax_rate, taxes;
         };

         int  main()
         {

         TaxPayer p[5];
         int i;

         cout<<"Enter annual income and tax rate of 5 persons: \n";

         for(i=0;i<5;i++)
         {
                cout<<"Enter annual income of tax payer #" <<i+1<<" : ";
                cin>>p[i].income;
                cout<<"Enter tax rate of tax payer #"<<i+1<<" : ";
                cin>>p[i].tax_rate;
                p[i].taxes=p[i].income*p[i].tax_rate/100;
         }
         cout<<" Taxes due for this year: \n";

         for(i=0;i<5;i++)
         cout<<" Tax Payer # "<<i+1<<" : "<<" Rs. "<<p[i].taxes<<endl;

         return 0;
         }

7 comments:

  1. Thanks for sharing your services. Keep update the blog.keep it up. | Income Tax Filing Company In Vijayawada

    ReplyDelete
  2. Thanks for sharing your services. Keep update the blog.keep it up.
    Income Tax Filing in Vijayawada

    ReplyDelete

  3. Nice Information!!
    It is very helpful information about Digital printing Malaysia. Thanks for sharing
    Income tax rates

    ReplyDelete
  4. Impressed alot.I really like your blog.
    Thanks for the post
    Income Tax Filing in Vijayawada

    ReplyDelete
  5. Nice Information!!
    It is very helpful information about Digital printing Malaysia. Thanks for sharing
    Annual Return filing in Vijayawada

    ReplyDelete
  6. Nice blog.
    Thanks for sharing useful information.
    tax rates Income

    ReplyDelete

If you have any doubt please let me know

Methods in JAVA Language

 In general, a way may be thanks to perform some task. Similarly, the tactic in Java may be a collection of instructions that performs a sel...