Question: For the class Employee example provided in the tutorial, what code segment could be added to the _ _ init _ _ method to implement

For the class Employee example provided in the tutorial, what code segment could be added to the __init__ method to implement adding in the number of employees managed for employees with the job title "Manager" by asking the user for this number?
a.)
numManaged =0
if jobtitle == "Manager":
numManaged = int(input("Looks like you input a manager; how many employees does "+ firstname +" manage: "))
b.)
self.numManaged =0
if self.jobtitle == "Manager":
self.numManaged = int(input("Looks like you input a manager; how many employees does "+ self.firstname +" manage: "))
c.)
numManaged =0
if self.jobtitle == "Manager":
numManaged = int(input("Looks like you input a manager; how many employees does "+ firstname +" manage: "))
d.)
self.numManaged =0
if self.jobtitle == "Manager":
numManaged = int(input("Looks like you input a manager; how many employees does "+ self.firstname +" manage: "))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!