- Inherit The Employee Class From Classwork 10 And Create A Subclass Executive The Subclass Will Include The Monthly Sala 1 (27.24 KiB) Viewed 28 times
Inherit the Employee class from Classwork 10 and create a subclass Executive. The subclass will include the monthly sala
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Inherit the Employee class from Classwork 10 and create a subclass Executive. The subclass will include the monthly sala
Inherit the Employee class from Classwork 10 and create a subclass Executive. The subclass will include the monthly salaries and the term of employment (in months) and can calculate the present value of the wages. Assume a monthly discount rate of 0.0025 in calculating the present value and that monthly payment occurs at the end of each month. Use a list comprehension in calculating the present value. The function will be capable of the following. Upload the .py file and the output screenshot on Canvas. >>> executivel - Executive ("George", "Carlin", 20000, 48 ) >>> executivel.initial() "GC! >>> executivel.number_letter() 12 >>> executivel.salary 20000 >>> executivel.term 48 >>> executive1.pv_salary() 903573.89