SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
Draw a UML to represent the below given problem. Then, using python create new class (with all
suitable methods and attributes) and the new relations. Create a generic superclass that
represents aEmployee (in the company) and 2 subclasses for class Employee (Permanent and
Temporary) and another subclass for the class Permanent (Technician). We will add the class
Department that is associated to the Engineer by the relation expertise, and to the technician by
the relation tasks scheduled. Write a separate test module where 2 instances (1 for the Engineer
and 1 for the Technician) are created,and the methods are tested by giving the required details
and print the details for each class.

Mais conteúdo relacionado

Mais de info317548

Downtown Bancshares has 32000 shares of 10 par value commo.pdf
Downtown Bancshares has 32000 shares of 10 par value commo.pdfDowntown Bancshares has 32000 shares of 10 par value commo.pdf
Downtown Bancshares has 32000 shares of 10 par value commo.pdfinfo317548
 
E56 Static Preparing a Bank Reconciliation and Journal En.pdf
E56 Static Preparing a Bank Reconciliation and Journal En.pdfE56 Static Preparing a Bank Reconciliation and Journal En.pdf
E56 Static Preparing a Bank Reconciliation and Journal En.pdfinfo317548
 
e We are both tropical epiphytes that have symbiotic relati.pdf
e We are both tropical epiphytes that have symbiotic relati.pdfe We are both tropical epiphytes that have symbiotic relati.pdf
e We are both tropical epiphytes that have symbiotic relati.pdfinfo317548
 
e wwwR that is w is a palindrome f g The set of.pdf
e wwwR that is w is a palindrome  f  g The set of.pdfe wwwR that is w is a palindrome  f  g The set of.pdf
e wwwR that is w is a palindrome f g The set of.pdfinfo317548
 
E coli cells are simultaneously infected with two strains o.pdf
E coli cells are simultaneously infected with two strains o.pdfE coli cells are simultaneously infected with two strains o.pdf
E coli cells are simultaneously infected with two strains o.pdfinfo317548
 
Doru ya da yanl 7 1920 sonbaharnda Wall Streetteki bomba.pdf
Doru ya da yanl  7 1920 sonbaharnda Wall Streetteki bomba.pdfDoru ya da yanl  7 1920 sonbaharnda Wall Streetteki bomba.pdf
Doru ya da yanl 7 1920 sonbaharnda Wall Streetteki bomba.pdfinfo317548
 
E Assume instead of 24 bits for the network address part of.pdf
E Assume instead of 24 bits for the network address part of.pdfE Assume instead of 24 bits for the network address part of.pdf
E Assume instead of 24 bits for the network address part of.pdfinfo317548
 
Dynamics of Accumulation Stocks are accumulations The diffe.pdf
Dynamics of Accumulation Stocks are accumulations The diffe.pdfDynamics of Accumulation Stocks are accumulations The diffe.pdf
Dynamics of Accumulation Stocks are accumulations The diffe.pdfinfo317548
 
E 55 F 65 G 75 14 In the following pedigree a single ge.pdf
E 55 F 65 G 75 14 In the following pedigree a single ge.pdfE 55 F 65 G 75 14 In the following pedigree a single ge.pdf
E 55 F 65 G 75 14 In the following pedigree a single ge.pdfinfo317548
 
dxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdf
dxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdfdxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdf
dxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdfinfo317548
 
e Gire the mnan and the standard devistion of the sampling.pdf
e Gire the mnan and the standard devistion of the sampling.pdfe Gire the mnan and the standard devistion of the sampling.pdf
e Gire the mnan and the standard devistion of the sampling.pdfinfo317548
 
Dwightn grd bir Instagram gnderisine gre asalak yass .pdf
Dwightn grd bir Instagram gnderisine gre asalak yass .pdfDwightn grd bir Instagram gnderisine gre asalak yass .pdf
Dwightn grd bir Instagram gnderisine gre asalak yass .pdfinfo317548
 
Duygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdf
Duygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdfDuygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdf
Duygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdfinfo317548
 
Dove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdf
Dove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdfDove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdf
Dove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdfinfo317548
 
Durum 2 International Foodsta novasyon sorular 15 1 T.pdf
Durum 2 International Foodsta novasyon   sorular 15  1 T.pdfDurum 2 International Foodsta novasyon   sorular 15  1 T.pdf
Durum 2 International Foodsta novasyon sorular 15 1 T.pdfinfo317548
 
During transformation only one plasmid enters an E coli ce.pdf
During transformation only one plasmid enters an E coli ce.pdfDuring transformation only one plasmid enters an E coli ce.pdf
During transformation only one plasmid enters an E coli ce.pdfinfo317548
 
During the first year of COVID19 there werent enough high.pdf
During the first year of COVID19 there werent enough high.pdfDuring the first year of COVID19 there werent enough high.pdf
During the first year of COVID19 there werent enough high.pdfinfo317548
 
During the pandemic the Centers for Disease Control and Pre.pdf
During the pandemic the Centers for Disease Control and Pre.pdfDuring the pandemic the Centers for Disease Control and Pre.pdf
During the pandemic the Centers for Disease Control and Pre.pdfinfo317548
 
During the month of March Sandhill Cos employees earned wa.pdf
During the month of March Sandhill Cos employees earned wa.pdfDuring the month of March Sandhill Cos employees earned wa.pdf
During the month of March Sandhill Cos employees earned wa.pdfinfo317548
 
During the year Wright Company sells 515 remotecontrol air.pdf
During the year Wright Company sells 515 remotecontrol air.pdfDuring the year Wright Company sells 515 remotecontrol air.pdf
During the year Wright Company sells 515 remotecontrol air.pdfinfo317548
 

Mais de info317548 (20)

Downtown Bancshares has 32000 shares of 10 par value commo.pdf
Downtown Bancshares has 32000 shares of 10 par value commo.pdfDowntown Bancshares has 32000 shares of 10 par value commo.pdf
Downtown Bancshares has 32000 shares of 10 par value commo.pdf
 
E56 Static Preparing a Bank Reconciliation and Journal En.pdf
E56 Static Preparing a Bank Reconciliation and Journal En.pdfE56 Static Preparing a Bank Reconciliation and Journal En.pdf
E56 Static Preparing a Bank Reconciliation and Journal En.pdf
 
e We are both tropical epiphytes that have symbiotic relati.pdf
e We are both tropical epiphytes that have symbiotic relati.pdfe We are both tropical epiphytes that have symbiotic relati.pdf
e We are both tropical epiphytes that have symbiotic relati.pdf
 
e wwwR that is w is a palindrome f g The set of.pdf
e wwwR that is w is a palindrome  f  g The set of.pdfe wwwR that is w is a palindrome  f  g The set of.pdf
e wwwR that is w is a palindrome f g The set of.pdf
 
E coli cells are simultaneously infected with two strains o.pdf
E coli cells are simultaneously infected with two strains o.pdfE coli cells are simultaneously infected with two strains o.pdf
E coli cells are simultaneously infected with two strains o.pdf
 
Doru ya da yanl 7 1920 sonbaharnda Wall Streetteki bomba.pdf
Doru ya da yanl  7 1920 sonbaharnda Wall Streetteki bomba.pdfDoru ya da yanl  7 1920 sonbaharnda Wall Streetteki bomba.pdf
Doru ya da yanl 7 1920 sonbaharnda Wall Streetteki bomba.pdf
 
E Assume instead of 24 bits for the network address part of.pdf
E Assume instead of 24 bits for the network address part of.pdfE Assume instead of 24 bits for the network address part of.pdf
E Assume instead of 24 bits for the network address part of.pdf
 
Dynamics of Accumulation Stocks are accumulations The diffe.pdf
Dynamics of Accumulation Stocks are accumulations The diffe.pdfDynamics of Accumulation Stocks are accumulations The diffe.pdf
Dynamics of Accumulation Stocks are accumulations The diffe.pdf
 
E 55 F 65 G 75 14 In the following pedigree a single ge.pdf
E 55 F 65 G 75 14 In the following pedigree a single ge.pdfE 55 F 65 G 75 14 In the following pedigree a single ge.pdf
E 55 F 65 G 75 14 In the following pedigree a single ge.pdf
 
dxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdf
dxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdfdxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdf
dxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdf
 
e Gire the mnan and the standard devistion of the sampling.pdf
e Gire the mnan and the standard devistion of the sampling.pdfe Gire the mnan and the standard devistion of the sampling.pdf
e Gire the mnan and the standard devistion of the sampling.pdf
 
Dwightn grd bir Instagram gnderisine gre asalak yass .pdf
Dwightn grd bir Instagram gnderisine gre asalak yass .pdfDwightn grd bir Instagram gnderisine gre asalak yass .pdf
Dwightn grd bir Instagram gnderisine gre asalak yass .pdf
 
Duygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdf
Duygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdfDuygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdf
Duygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdf
 
Dove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdf
Dove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdfDove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdf
Dove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdf
 
Durum 2 International Foodsta novasyon sorular 15 1 T.pdf
Durum 2 International Foodsta novasyon   sorular 15  1 T.pdfDurum 2 International Foodsta novasyon   sorular 15  1 T.pdf
Durum 2 International Foodsta novasyon sorular 15 1 T.pdf
 
During transformation only one plasmid enters an E coli ce.pdf
During transformation only one plasmid enters an E coli ce.pdfDuring transformation only one plasmid enters an E coli ce.pdf
During transformation only one plasmid enters an E coli ce.pdf
 
During the first year of COVID19 there werent enough high.pdf
During the first year of COVID19 there werent enough high.pdfDuring the first year of COVID19 there werent enough high.pdf
During the first year of COVID19 there werent enough high.pdf
 
During the pandemic the Centers for Disease Control and Pre.pdf
During the pandemic the Centers for Disease Control and Pre.pdfDuring the pandemic the Centers for Disease Control and Pre.pdf
During the pandemic the Centers for Disease Control and Pre.pdf
 
During the month of March Sandhill Cos employees earned wa.pdf
During the month of March Sandhill Cos employees earned wa.pdfDuring the month of March Sandhill Cos employees earned wa.pdf
During the month of March Sandhill Cos employees earned wa.pdf
 
During the year Wright Company sells 515 remotecontrol air.pdf
During the year Wright Company sells 515 remotecontrol air.pdfDuring the year Wright Company sells 515 remotecontrol air.pdf
During the year Wright Company sells 515 remotecontrol air.pdf
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Último (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

UML Class Diagram and Python Code for Employee Hierarchy with Department Relation

  • 1. Draw a UML to represent the below given problem. Then, using python create new class (with all suitable methods and attributes) and the new relations. Create a generic superclass that represents aEmployee (in the company) and 2 subclasses for class Employee (Permanent and Temporary) and another subclass for the class Permanent (Technician). We will add the class Department that is associated to the Engineer by the relation expertise, and to the technician by the relation tasks scheduled. Write a separate test module where 2 instances (1 for the Engineer and 1 for the Technician) are created,and the methods are tested by giving the required details and print the details for each class.