Create class diagram, sequence diagrams and write corresponding code with JAVA
Budget: $30 – $250 AUD
Please note I need this within 1 day.
You will be required to create class diagram, sequence diagrams and write corresponding code using programming language Java. To simplify you need to do 3 activities. You will have to make a sequence diagram like this in Activity 1 https://lucid.app/lucidchart/d98915d4-3edc-4cf5-beb2-7f0d4fb0f4ac/view.
Activity 1
There is a requirement to create a new employee categorized as manager. This addition is due
to the following reasons
1. A customer can make complaints to the manager.
2. Manager pays salary to the cashier
3. Manager looks after the inventory of the store
Mention all the changes that should be made to the given sequence diagram to address this new
requirement. Justify these changes (there could be multiple solutions to address this
requirement, please explain the reason behind your solution). Clearly state all the assumptions
and create a new sequence diagram that addresses this new requirement (mentioned in this
activity) Note: You can either modify the given sequence diagram or create multiple sequence
diagrams based on your solution
Activity 2
First, create a class diagram after completing activity 1. Then transform the created class
diagram into java code. You can make assumptions while implementing classes (these
assumptions should be consistent with activities 1-2- sequence and class diagrams ). The java
code should just represent the behavior and structure reported in the sequence and class
diagrams respectively. Keep the function implementation simple (maybe returning or printing a
string variable that represents the respective part of the sequence diagram), complicated function
implementations are not part of the assignment. The sequence diagram could be implemented in
3 or more functions/methods, which should be accompanied by comments to describe which part
of the sequence diagrams is represented by the code. Create a main class for instantiating the
classes and run all the methods described in your solution of activity 1. Please note that the
code ending in errors will be penalized. Add comments to the code to explain the mapping from
class and sequence diagrams to code, code without comments will be penalized.
Activity 3
Which software architecture would you recommend for the above scenario? Provide details to
justify your recommendation. You may include figures to support your answer
You will be required to create class diagram, sequence diagrams and write corresponding code using programming language Java. To simplify you need to do 3 activities. You will have to make a sequence diagram like this in Activity 1 https://lucid.app/lucidchart/d98915d4-3edc-4cf5-beb2-7f0d4fb0f4ac/view.
Activity 1
There is a requirement to create a new employee categorized as manager. This addition is due
to the following reasons
1. A customer can make complaints to the manager.
2. Manager pays salary to the cashier
3. Manager looks after the inventory of the store
Mention all the changes that should be made to the given sequence diagram to address this new
requirement. Justify these changes (there could be multiple solutions to address this
requirement, please explain the reason behind your solution). Clearly state all the assumptions
and create a new sequence diagram that addresses this new requirement (mentioned in this
activity) Note: You can either modify the given sequence diagram or create multiple sequence
diagrams based on your solution
Activity 2
First, create a class diagram after completing activity 1. Then transform the created class
diagram into java code. You can make assumptions while implementing classes (these
assumptions should be consistent with activities 1-2- sequence and class diagrams ). The java
code should just represent the behavior and structure reported in the sequence and class
diagrams respectively. Keep the function implementation simple (maybe returning or printing a
string variable that represents the respective part of the sequence diagram), complicated function
implementations are not part of the assignment. The sequence diagram could be implemented in
3 or more functions/methods, which should be accompanied by comments to describe which part
of the sequence diagrams is represented by the code. Create a main class for instantiating the
classes and run all the methods described in your solution of activity 1. Please note that the
code ending in errors will be penalized. Add comments to the code to explain the mapping from
class and sequence diagrams to code, code without comments will be penalized.
Activity 3
Which software architecture would you recommend for the above scenario? Provide details to
justify your recommendation. You may include figures to support your answer