Question: Python: Object Oriented Programming Can I please get code for the following In class example Employee we have 5 variables: fname, Iname, pay, raise_rate, num_of_employees
Python: Object Oriented Programming
Can I please get code for the following

In class example "Employee" we have 5 variables: fname, Iname, pay, raise_rate, num_of_employees and 2 class methods: fullname(), apply_raise). Try to create this class using all the variables and methods. In class set the default raise_rate to 1.04. Create one instance "John Smith" with salary $50000 and the default raise_rate, and another instance "Bruce Lee" with salary $60000 and new raise_rate to 1.10. a. b. c. Create two new methods called display_former) to print out the former salary, and another method called display_new() to print out the new salary. Apply the apply_raise) method respectively to both instances to calculate salaries. Result should be The former salary for John Smith is 58800 The new salary for John Smith is 52800 The former salary for Bruce Lee is 60800 The new salary for Bruce Lee is 66800 Answer the Question in comment: can you combine these two methods display_former) and display_new() to only one method display() to print out the same result? If so, rewrite your code; if not, give the reasons. d. e
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
