Question: Create a python program to do the following : 1. Create a class of name person that has the following data attributes: First name: First

Create a python program to do the following :

1. Create a class of name person that has the following data attributes:

First name: First name of person

Last name: Last name of person

2.Create another class of name employee that inherits person class and has the following attributes:

basic salary: salary before any taxation or deduction

Tax amount: amount of tax to be deducted

deduction: lump sum

net salary: basic salary - tax amount- deductions

3. Tax will be calculatedas follows, based on basic salary as follows:

0.00 -30.000:no tax

30.001 - 60.000:15%of the value above 30.000

60.001 - 90.000:25%

>90.000035%

Tax will be paid on the salarycategory. For example:

Tax of basic salary of $40.000

Tax = 15% x(40.000-30.0000)- 0 x 30.000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!