Question: (ollowing CommissionEmployee base class has some missing lines. Fill in the blank lines. (Hint: Mead the comments.) (aspts) - rrom deoimal import Deoimal olass Commission

(ollowing CommissionEmployee base class has some missing lines. Fill in the blank lines. (Hint: Mead the comments.) (aspts) - rrom deoimal import Deoimal olass Commission Employee t w "An employee who gets paid commi saion based on gross sales . "=n def init_ (self, first,name, last name, san, gross_sales, commission rate) t nnn Initialize CommisaionEmployee's attributes . "n validate via property validate via property eproperty def first_name (self): eproperty return self._last_name eproperty def ssn(self): return self._ssn eproperty def gross_sales (self) : return self._gross_sales def gross_sales (self, sales): " "Set gross sales or raise ValueError if invalid." " if sales >= to 0 ) self._gross_sales = sales def commission_rate(self): acommission rate.setter def commission_rate(self, rate): "" "Set commission rate or raise Valuetrror if invalid." " if not (Decimal ('0.0') 1) self._commission_rate = rate def earnings (self): ""Calculate earnings by multiplying gross_sales by commission_rate." def repr (self): " "Return string representation for repr()."n" return ('CommissionEmployee: ' + \#first name and last f'social security number: \{self.ssn\} + f gross sales: \{self.gross_sales: . 2f +
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
