Question: Write in Python. Please read carefully the instructions and give me the answer in a format I can copy and paste it in the IDE.

Write in Python. Please read carefully the instructions and give me the answer in a format I can copy and paste it in the IDE.

For Question 2, the diagram can be made using any tool.

 Write in Python. Please read carefully the instructions and give me

5 Marks Question:1 55 Marks 1. Create a class Person a. Initialize a class Person (Constructor method) with FirstName, LastName, Age, Address and Contact Number 2. Create a class Employee 5 Marks a. Employee is a person so Employee is a child class of Person class. Employee class constructor/_init_method will contain all the attributes of Person class and Employee class own attributes which are Employeeld, OrganizationName and Position 3. Create a class Commission Employee 15 Marks a. CommissionEmployee is a child class of Employee class. It should inherit all the attributes of Employee class and its own attribute which is commission Rate b. Create a method called calculateCommission, which should take input of gross sale from the user and based on the commission rate calculate the totalEarning- c. Create a method called displayData which should display the FirstName, LastName, Age, Address, Contact Number, Employeeld, OrganizationName, Position, commissionRate and totalEarning 4. Create a class Salaried Employee 15 Marks a. Salaried Employee class is a child class of Employee class. It should inherit all the attributes of Employee class and add its own attribute baseSalary. b. Create a method called CalculateNet Salary which should deduct 13% Provisional Tax, 1% insurance and 3% Fed Tax from base Salary and display the NetSalary. c. Create a method called displayData which should display the FirstName, LastName, Age, Address, Contact Number, Employeeld, OrganizationName, Position, baseSalary and NetSalary. 5. Create a class BasePlusCommissionEmployee 15 Marks a. BasePlusCommission Employee class is a child class of Commission Employee. It should inherit all the attributes of Commission Employee class and add its own attribute baseSalary. b. Create a method called calculate TotalEarning which should inherit super class method calculateCommission and add base Salary in it. c Create a method called displayData which should display the FirstName, LastName, Age, Address, Contact Number, EmployeeID, OrganizationName, Position and totalEarning. Question: 45 Marks Create a complete class diagram of Question-01. Show relationship/inheritance between classes

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 Databases Questions!