Question: def total_pay(self) -> float: I Return the total amount of pay this Employee has received. >>> e = SalariedEmployee(14, 'Gilbert the cat', 1200.0) >>>

def total_pay(self) -> float: " I "Return the total amount of pay this Employee has received. >>> e = SalariedEmployee(14, 'Gilbert the cat', 1200.0) >>> e.pay(date(2018, 6, 28)) An employee was paid 100.0 on 2018-06-28. >>> e.pay(date (2018, 7, 28)) An employee was paid 100.0 on 2018-07-28. >>> e.pay (date(2018, 8, 28)) An employee was paid 100.0 on 2018-08-28. >>> e.total_pay ( ) 300.0 II III # TODO: implement this method! pass
Step by Step Solution
There are 3 Steps involved in it
To implement the totalpay method for the Employee class in Python youll need to keep track of the pa... View full answer
Get step-by-step solutions from verified subject matter experts
