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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started