Question
Transform the following UML into Java code The factory has a name, address, invoice value and products. Each product consists of id, name and price.
Transform the following UML into Java code
The factory has a name, address, invoice value and products. Each product consists of id, name and price. The factory has several types of employees in the factory in which they all share a name, id, email, salary and phone. The manager has department in which he/she works in, office number and project name in which he/she is responsible for. The workers have a position, shift and a flag that defines if the worker is a team leader or not. The accountant has a level and a list of responsibilities. A client has id, name, address and purchase order. The purchase order has client linked to it, id, invoice value and products. The purchase order must have an option to add products to the purchase which will increase the invoice value based on the products price. Both the factory and client should have a pay option that will pay the invoice value. All the employees should have an option to get their salaries based on their profession as follow: Manager salary = base salary + 25% of the base salary Worker salary = base salary + 5% of the base salary Accountant salary = base salary + 10% of the base salary
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started