Question: Please comment out the code. 1. We learned how to build the first class Students in our class. Using it as an example, create another
Please comment out the code.

1. We learned how to build the first class "Students" in our class. Using it as an example, create another class named "Company" containing 5 variables: fname, Iname, pay, raise rate, num of employees and 2 class methods: fullname(), apply raise(). a. Try to create this class using all the above variables and methods. Set the default raise rate to 1.04. b. 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. c. Create two new methods called display old() to print out the old 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. d. Result should be: The former salary for John Smith is 50000 The new salary for John Smith is 52000 The former salary for Bruce Lee is 60000 The new salary for Bruce Lee is 66000 e. Answer the Question in comment: can you combine these two methods display old() and display new() to only one method display() to print out the same result? If so, rewrite your code; if not, give the reasons
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
