Programming Logic and Design - XYZ holdings Case Study - Engineering Assignment Help

Download Solution Order New Solution
Assignment Task :

Scenario to be used for questions in this assignment: 

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. 

 

Question 1  Answer all questions within this section based on the information contained in the scenario.   

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 (5) and TemporaryEmployee. 

Q.1.1.2 An appropriate relationships between class Branch, Department and (4) Employee. 

Q.1.1.3 An appropriate relationship between Employee, PermanentEmployee (3) and TemporaryEmployee. 

Q.1.1.4 Two instance variables declared in class Branch as well as accompanying (6) getter and setter methods for each instance variable. 

Q.1.1.5 One instance variable declared in class Department as well as (3) accompanying getter and setter methods for the instance variable. 

Q.1.1.6 Three instance variables declared in class Employee as well as (9) accompanying getter and setter methods for each instance variable. Q.1.1.7 Two instance variables declared in class PermanentEmployee as well as (6)appropriate getter and setter methods and a parameterized constructor.   

Q.1.1.8 Three instance variables declared in class TemporaryEmployee as well (8) as appropriate getter and setter methods and a parameterized constructor. 

Q.1.1.9 Each element must be indicated using the correct notation. (1) 

 

Question 2 Answer all questions in this section.  Base your answers on the class diagram you have created in Question 1. 

Q.2.1 Write the pseudocode for class TemporaryEmployee.  Also, ensure that you (17) indicate the relationship between the TemporaryEmployee and Employee class. 

Q.2.2   Using pseudocode, write the mainline logic that will make use of the (8) appropriate methods in the TemporaryEmployee class to calculate the monthly salary of a temporary employee.  Your mainline logic should prompt the user for the values needed. 

   

This Engineering Assignment has been solved by our Engineering  Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.