Parameterized constructor to initialize all members

Assignment Help Basic Computer Science
Reference no: EM131040581

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.

Reference no: EM131040581

Questions Cloud

Dynamically allocated stack : Write functions to perform PUSH& POP operations in a dynamically allocated stack containing the objects of the following structure:
Two doctrines-generally prevent offer from being revoked : Which of the following are two doctrines that generally prevent an offer from being revoked?
The surui tribe of the amazon : Chief Almir of the Surui tribe of the Brazilian Amazon is using Google to help his tribe maintain its traditional way of life. In 1969, the Surui experienced their first contact with outsiders, who brought with them disease, violence, and death. T..
Dimensional array prime : Write a function TRANSFERP( int ALL[ ], int N) , to transfer all the prime numbers from a one dimensional array ALL[ ] to another one dimensional array PRIME[ ]. The resultant array PRIME[ ] must be displayed on screen.
Parameterized constructor to initialize all 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.
Ethical dilemma-when does a little white lie turn gray : Ethical Dilemma: When does a little white lie turn gray? It’s been a rough year for your company, a manufacturer of special-purpose construction equipment. A competitor has come out with a line of machinery that costs half as much as yours and perfor..
Difference between call by reference-call by value method : What is the difference between call by reference & call by value method in a user defined function in C++? Explain it with suitable example.
Windows network services proposal : Each student will create a detailed, organized, unified technical solution given the scenario described below. The submission will be in a written format, with at least one diagram, and may include additional diagrams, charts or tables. The assign..
What are the differences between power and leadership : What types of power tactics have you used in your own interactions with bosses, co-workers, or employees? Which do you find most effective? Why?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Which kinds of computing and information systems

Which kinds of computing and information systems do users really need to care about underlying technologies? Which kinds of users ought to pay more attention how well a variety of devices and applications work together (and how seamlessly)? Do you wa..

  Explain how a user can use two programs in combination

Explain how a user can use two programs in combination with symbolic links to access a file to which the user does not have permission to open. How you would access the file, for example, moving, printing, modifying, or sharing a file. Finally..

  Define an information systems security policy

Part 1: define an information systems security policy framework for an it infrastructure

  What are the dangers of not cross checking between the model

What are the dangers of not cross checking between the models?

  Write a program that reads three integers and print

Write a program that reads three integers and print "In order" if they are sorted in ascending order or descending order, or "not in order" otherwise. For example: 1 2 5 in order 1 5 2 not in order 5 2 1 in order 1 2 2 in order 5 1 2 not in order.

  Presenter notes section of the presentation

Note: The slides in your presentation should include only the main points you wish to make, with more extensive information included in the presenter notes section of the presentation.

  Determine the radius of the friction circle

If the piston is moving upwards, and the coefficient of static friction at the contact points is µs = 0.3 , determine the radius of the friction circle

  State and explain storage management strategies

What are the operations of page replacement algorithm?

  Implement a method

A supermarket wants to reward its best customer of each day, showing the customer's name on a screen in the supermarket. For that purpose, the customer's purchase amount is stored in an ArrayList and the customer's name is stored in a corresponding A..

  Create a class named safestack

Assignment:Create a class named SafeStack that implements a stack of strings. Use an instance of stack from to hold string values and implement the same interface as the data type. However, your implementation (class) should throw an exceptio..

  Problem regarding the respective column

Display all student information in a tabular format. Ensure that each column heading aligns correctly with its respective column and that each name (first and last) is capitalized. Finally, display each GPA with two significant decimals.

  Prepare a project task list to include all the detailed task

You are the data transformation specialist for the first data warehouse project in an airlines company. Prepare a project task list to include all the detailed tasks needed for data extraction and transformation.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd