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 of the following statements are true

Consider the strings "catch" and "caught", and the alignment of these strings using the edit distance algorithm with fixed penalties of +1 for a deletion, +1 for an insertion and +2 for a substitution.

  Write a c program to draw an analog clock

Write a c program to draw an analog clock. Simulate the movement of needles.

  Write a recursive function sumtreenodehelper

Write a recursive function sumTreeNodeHelper that sums the elements of a binary search tree starting with the smallest element and adding elements in order up to the largest element and prints the running sum as each new value (ie. Node->val) is adde..

  Compute and display the average age

Create a Class StudentType Create a StudentType array of 50 students Set the age of the first student to 10, second student to 11, and so on until the last student to 59. Compute and display the average age of all 50 students with the help of a fu..

  Select the northeast sales

Select the Northeast sales, and then display the Quick Analysis Totals gallery. Click the second Sum option-the sixth item in the gallery-which displays the column selection in yellow. Copy the formula down through cell F7.

  Implementation of the database and manipulation of data

After reviewing all the designs, defining the scope and long deliberations with Dr Zen Fuller, the design of the database has been finalised. In this assignment you will use a ‘simplified’ database model as depicted by the ERD in Figure 1.

  Create confidence interval for proportion of all welders

Create the 95 percent confidence interval for proportion of all welders who graduated from registered welding course.

  Javascript techniques to improve usability

Design a suitable applied web form example which has a work context. The form that needs to be created is a contact form for a Student Forum. Design the form which must have user input and a range of form furniture Ie. Buttons/ user Input fields. ..

  Critique the idea which the cio can be a bridge between

critique the idea that the cio can be a bridge between enterprise finance marketing and sales functions. justify the

  Examine how unix (and linux) organizes images and processes

Examine how UNIX (and Linux) organizes images and processes, manages data, files, and devices, and controls data access on a system at the administrator and user level.Review what you have learned about UNIX and Linux internals in Chapter 13, and dem..

  What is the general algorithm for solving this problem

what is the general algorithm/approach for solving this problem? as a test case, move_robot 10 forward 3 = 13

  Planning to purchase light commuter aircraft within one year

The airline is planning to purchase light commuter aircraft within one year. These will be used on short flights to small, regional centres. They require that the design of the system be flexible enough to accommodate light commuter aircraft with ..

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