write a phyton code: 1- define a class CommissionEmployee that: a. has a firstName, lastName, socialSecurityNumber, grossSales and commissionRate instance variables b. does initialize its properties to the values given at the time of instantiation with default values c. does provide a string representation when we call print on it 2- define a class BaseCommissionEmployee, that is a CommissionEmployee and a. has a " baseSalary " property that tells us the base salary per week b. does initialize its properties, inherited from CommissionEmployee class and defined in BaseCommissionEmployee, to the values given at the time of instantiation. c. has a method earnings that calculates and returns commission employee's pay (baseSalary + ( commissionRate * grossSales )) d. does provide a string representation when we call print on it 3- define a class CommissionTester that a. has a method "main" to test the CommissionEmployee and BaseCommissionEmployee classes b. the main method must instantiate the class into objects and test the method to get all instructions to run. c. call CommissionTester.main() to run the progra
write a phyton code:
1- define a class CommissionEmployee that:
a. has a firstName, lastName, socialSecurityNumber, grossSales and commissionRate
instance variables
b. does initialize its properties to the values given at the time of instantiation with
default values
c. does provide a string representation when we call print on it
2- define a class BaseCommissionEmployee, that is a CommissionEmployee and
a. has a " baseSalary " property that tells us the base salary per week
b. does initialize its properties, inherited from CommissionEmployee class and defined
in BaseCommissionEmployee, to the values given at the time of instantiation.
c. has a method earnings that calculates and returns commission employee's pay
(baseSalary + ( commissionRate * grossSales ))
d. does provide a string representation when we call print on it
3- define a class CommissionTester that
a. has a method "main" to test the CommissionEmployee and BaseCommissionEmployee
classes
b. the main method must instantiate the class into objects and test the method to get all
instructions to run.
c. call CommissionTester.main() to run the program
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images