XYZ holdings have many branches. Each branch has a name and is located in a different province. Each branch has several departments such as marketing, finance, sales and customer relations. For a department to exist there must be employees employed in each of the departments. An employee is ether a permanent staff member or a temporary staff member. The difference between these two types of employees exist in the facts that permanent staff earns a fixed salary of R30 000 every month and has a medical aid benefit whereas temporary staff members has an hourly rate of R400 per hour and their monthly salary is dependent on the number of hours worked each month multiplied by their hourly rate. Temporary staff members also do not have a medical aid benefit. All employees, however, have a name, surname and employee number. Q.1.1 Based on the information contained in the scenario, create a class diagram which will address/ contain the following elements: Q.1.1.1 Five classes called Branch, Department, Employee, PermanentEmployee and TemporaryEmployee. Q.1.1.2 An appropriate relationships between class Branch, Department and Employee. Q.1.1.3 An appropriate relationship between Employee, PermanentEmployee and TemporaryEmployee. Q.1.1.4 Two instance variables declared in class Branch as well as accompanying getter and setter methods for each instance variable. Q.1.1.5 One instance variable declared in class Department as well as accompanying getter and setter methods for the instance variable. Q.1.1.6 Three instance variables declared in class Employee as well as accompanying getter and setter methods for each instance variable. Q.1.1.7 Two instance variables declared in class PermanentEmployee as well as appropriate getter and setter methods and a parameterized

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
XYZ holdings have many branches. Each branch has a name and is located in a different province.
Each branch has several departments such as marketing, finance, sales and customer relations.
For a department to exist there must be employees employed in each of the departments.
An employee is ether a permanent staff member or a temporary staff member. The difference
between these two types of employees exist in the facts that permanent staff earns a fixed salary
of R30 000 every month and has a medical aid benefit whereas temporary staff members has an
hourly rate of R400 per hour and their monthly salary is dependent on the number of hours
worked each month multiplied by their hourly rate. Temporary staff members also do not have a
medical aid benefit. All employees, however, have a name, surname and employee number.
Transcribed Image Text:XYZ holdings have many branches. Each branch has a name and is located in a different province. Each branch has several departments such as marketing, finance, sales and customer relations. For a department to exist there must be employees employed in each of the departments. An employee is ether a permanent staff member or a temporary staff member. The difference between these two types of employees exist in the facts that permanent staff earns a fixed salary of R30 000 every month and has a medical aid benefit whereas temporary staff members has an hourly rate of R400 per hour and their monthly salary is dependent on the number of hours worked each month multiplied by their hourly rate. Temporary staff members also do not have a medical aid benefit. All employees, however, have a name, surname and employee number.
Q.1.1
Based on the information contained in the scenario, create a class diagram which
will address/ contain the following elements:
Q.1.1.1
Five classes called Branch, Department, Employee, PermanentEmployee
and TemporaryEmployee.
Q.1.1.2
An appropriate relationships between class Branch, Department and
Employee.
Q.1.1.3
An appropriate relationship between Employee, PermanentEmployee
and TemporaryEmployee.
Q.1.1.4
Two instance variables declared in class Branch as well as accompanying
getter and setter methods for each instance variable.
Q.1.1.5
One instance variable declared in class Department as well as
accompanying getter and setter methods for the instance variable.
Q.1.1.6
Three instance variables declared in class Employee as well as
accompanying getter and setter methods for each instance variable.
Q.1.1.7
Two instance variables declared in class PermanentEmployee as well as
appropriate getter and setter methods and a parameterized
Transcribed Image Text:Q.1.1 Based on the information contained in the scenario, create a class diagram which will address/ contain the following elements: Q.1.1.1 Five classes called Branch, Department, Employee, PermanentEmployee and TemporaryEmployee. Q.1.1.2 An appropriate relationships between class Branch, Department and Employee. Q.1.1.3 An appropriate relationship between Employee, PermanentEmployee and TemporaryEmployee. Q.1.1.4 Two instance variables declared in class Branch as well as accompanying getter and setter methods for each instance variable. Q.1.1.5 One instance variable declared in class Department as well as accompanying getter and setter methods for the instance variable. Q.1.1.6 Three instance variables declared in class Employee as well as accompanying getter and setter methods for each instance variable. Q.1.1.7 Two instance variables declared in class PermanentEmployee as well as appropriate getter and setter methods and a parameterized
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY