A parameterized constructor to initialize all the members a


Private members :

  1. Name of type string
  2. PanNo of type string
  3. Taxabincm (Taxable income) of type float
  4. TotTax of type double
  5. A function CompTax( ) to calculate tax according to the following slab:

Taxable Income Tax%
Up to 160000 0
>160000 and <=300000 5
>300000 and <=500000 10
>500000 15
Public members :

  • A parameterized constructor to initialize all the members
  • A function INTAX( ) to enter data for the tax payer and call function CompTax( ) to assign TotTax.
  • A function OUTAX( ) to allow user to view the content of all the data members.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: A parameterized constructor to initialize all the members a
Reference No:- TGS01386472

Now Priced at $20 (50% Discount)

Recommended (90%)

Rated (4.3/5)