C# code based on a given UML Diagram

Anonymous
timer Asked: Jan 31st, 2021

Question Description

The question is attached here, please review it before bidding! The UML diagram is already done but may need some correction, then it will need to be implemented in C# using Visual studio.

Unformatted Attachment Preview

XYZ company consists of a number of people, including nine employees and the owner (Craig). All people share some common attributes, name, age, title and salary. The nine employees include two managers (John and Mary), two accountants (Jane and Joe), and five blacksmiths (Jack, Katie, Amy, Lin, and Greg). Employees who have the same job title begins with an identical start-up salary. The pay changes over time according to their individual performances. The start-up salary is $50,000 for manager, $45,000 for accountant, and $35,000 for blacksmith. The owner can send a text message to multiple employees at a time. He can also delegate this duty to one of the managers when he is out of town. A manager can evaluate the performance of a blacksmith at a time and gives a Likert scale from 1 to 5. When a manager is out of town, s/he can delegate the evaluation duty to another manager. An accountant can update the salary of an employee at a time. An accountant delegates such a duty only to the other accountant when out of town. Employees other than accountants cannot update salary. A blacksmith can perform an assigned task object with an ID, due date, and description as the attributes. A blacksmith can delegate the duty to a blacksmith, a manager or even an accountant when out of town. A person can do only one extra delegated work besides his own work. Provide a UML class diagram for the system design. (5 pts). All attributes must be private and the classes must include Company, Employee, Owner, Manager, Accountant, Blacksmith, and Task. Methods must include send, evaluate, update, and perform, and may have arguments. Feel free to add interfaces, abstract classes and methods, but no more classes. Please model the relationships, multiplicity, and visibility. Try to reduce the unnecessary links and achieve good software reusability. Implement C# code to test the following scenarios. (5 pts) Craig sends a message “Good Job” to employees John, Jane and Jack through arguments. Greg not only performs his own task t1 but also the delegated task t2 by Amy. In other words, calling Greg’s perform method will have both tasks prompted. Accountant Jane updates Greg’s salary with an increase of $1000 and does the delegated task from Lin. Let John and Mary evaluate Jack and Katie, respectively. Next, let John delegate his duty to Mary because he receives an urgent notice to go out of town. Finally, show Mary’s “evaluate” method give the Likert scales for Jack and Katie as 4 and 5. Solution This is what I have so far, it may not be perfect please check before implementing ...
Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!

Similar Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors