Convert Uml Diagrams Requirements Python Code Thanks Much Appreciate Help Q43779644


How can I convert these UML diagrams andrequirements to Python code? Thanks
I will much appreciate the help
EMPLOYEE CLASS Employee – name: str – eid: str +<<property>> name : str +<<property>>eid : str +_init__(name : str, eid : str) + str_0:str Purpose: Employee class abstracts the notion of an Employee. Use name mangling on variables. Properties: Implement properties as seen in the UML Class Diagram. Both properties must implement both the property and setter decorators. name: property returns capitalized name and setter checks the name isalpha() and if true store the name in the object otherwise store ‘Unknown’ eid: property returns eid zero filled up to 4 spaces and setter will assign ‘9999’ if length is zero, otherwise store the eid. Methods: str_0 formats ‘<eid>: <name>’ so all employee always print both id and name. MANAGER CLASS Manager + subordinates: list +_init__(name : str, eid : str) + print_subordinates(): None | + add_subordinate(): None Purpose: A Manager class abstracts the notion of a Manager. A Manager is also an Employee. Therefore, the Manager class should inherit from the Employee class. Fields: Maintain fields for variables which you need to access from other methods! You definitely need an list of Employees and a count. Add any more that you need! _init_0: Implement the initializer for Manager. Be sure to call the Employee or super initializer! Methods add_subordinate() method General Method Purpose: This method should add one employee to the subordinates list. So you should ask the user details about one employee, create a new Employee and add it to the list. print_subordinates() method General Method Purpose: This method should loop through the subordinates list and print out a list of all employees’ names and ids. Show transcribed image text EMPLOYEE CLASS Employee – name: str – eid: str + name : str +eid : str +_init__(name : str, eid : str) + str_0:str Purpose: Employee class abstracts the notion of an Employee. Use name mangling on variables. Properties: Implement properties as seen in the UML Class Diagram. Both properties must implement both the property and setter decorators. name: property returns capitalized name and setter checks the name isalpha() and if true store the name in the object otherwise store ‘Unknown’ eid: property returns eid zero filled up to 4 spaces and setter will assign ‘9999’ if length is zero, otherwise store the eid. Methods: str_0 formats ‘: ‘ so all employee always print both id and name.
MANAGER CLASS Manager + subordinates: list +_init__(name : str, eid : str) + print_subordinates(): None | + add_subordinate(): None Purpose: A Manager class abstracts the notion of a Manager. A Manager is also an Employee. Therefore, the Manager class should inherit from the Employee class. Fields: Maintain fields for variables which you need to access from other methods! You definitely need an list of Employees and a count. Add any more that you need! _init_0: Implement the initializer for Manager. Be sure to call the Employee or super initializer! Methods add_subordinate() method General Method Purpose: This method should add one employee to the subordinates list. So you should ask the user details about one employee, create a new Employee and add it to the list. print_subordinates() method General Method Purpose: This method should loop through the subordinates list and print out a list of all employees’ names and ids.
Expert Answer
Answer to How can I convert these UML diagrams and requirements to Python code? Thanks I will much appreciate the help…
OR