Computer Science, asked by himanshusinghkharwar, 7 months ago

Define a class employee which accepts name of the employee, annual

taxable income of the employee and the type of employee (‘M’ for male and

‘F’ for female).Calculate and print the tax to be paid by the employee along

with all the details. The program should compute the tax according to the

given conditions:

Total annual taxable

income

Tax rates for Males Tax rates for Females

Upto Rs. 2,00,000 No tax No tax

From Rs. 2,00,001 to

Rs.3,50,000

20% of the income

exceeding Rs. 2,00,000

15% of the income

exceeding Rs.2,00,000

From Rs. 3,50,001 to

Rs.6,50,000

Rs. 15000+25% of the

income exceeding

3,50,000

Rs. 10000+10% of the

income exceeding

3,50,000

Above Rs. 6,50,000 Rs. 30,000+30% of the

income exceeding

6,50,000

Rs. 25,000+20% of the

income exceeding

6,50,000
write step by step solutions please please please please please please please please please​

Answers

Answered by priyaagari516
2

Answer:

Define a class employee having the following description : Data members/instance variables: int pan — to store personal account number String name — to store name

double tax income — to store annual taxable income double tax — to store tax that is calculated Member functions:

input() — Store the pan number, name, taxable income calc() — Calculate tax for an employee display() — Output details of an employee

Write a program to compute the tax according to the given conditions and display the output as per given format.

Total annual Taxable Income Tax Rate Upto Rs.

1,00;000 No tax From 1,00,001 to 1,50,000 10% of the income exceeding

Rs. 1,00,000 From 1,50,001 to 2,50,000 Rs.

5,000 + 20%

of the income exceeding

Rs. 1,50,000Read

Answered by priyaagari650
0

Answer:

Class, Constructor and Objects

Section B

2005

Question 4

Write a class with name employee and basic as its data member, to find the gross pay of an employee for the following allowances and deduction. Use meaningful variables.

Dearness Allowance = 25% of Basic Pay House Rent Allowance = 15% of Basic Pay

Provident Fund = 8.33% of Basic Pay Net Pay = Basic Pay + Dearness Allowance + HRA

Gross Pay = Net Pay - Provident Fund. [15]

Show Answer

2007

Question 4

Define a class salary described as below:-

Data Members:

Name, Address, Phone, Subject Specialization, Monthly Salary, Income Tax.

Member methods:

(i) To accept the details of a teacher including the monthly salary.

(ii) To display the details of the teacher.

(iii) To compute annual Income Tax as 5% of annual salary above Rs. 1,75,000/-

Write main method to create object and call the above member methods. [15]

Show Answer

2008

Question 4

Define a class employee having the following description:

Data members/Instance Variables:

int pan to store personal account number.

String name to store name.

double taxincome to store annual taxable income.

double tax to store tax that is calculated.

Member functions:

input() Store the pan number,name and taxable income

calc() Calculate tax for an employee

display() Output details of an employee

Write a program to compute tax according to the given conditions and display output as given format.

Total Taxable Income Tax Rate

Upto Rs. 1,00,000 No tax

From 1,00,001 to 1,50,000 10% of the income exceeding Rs. 1,00,000

From 1,50,001 to 2,50,000 Rs. 5,000+20% of the income exceeding 1,50,000

Above Rs.2,50,000 Rs. 25,000+30% of income exceeding 2,50,000 [15]

Output:

PanNumber Name Tax

xx xx xx

Similar questions