Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

4- Answer the following questions about the diagram below: a. What is this diagr

ID: 3739213 • Letter: 4

Question

4- Answer the following questions about the diagram below: a. What is this diagram called? b. Name the Classes in this diagram. c. What does the X mean at the end of the pipeline under ::dorm d. How many messages are initiated by :newStudent? e. What is the second message initiated by :newStudent? f. How many return messages are in this diagram? g. What is the third return message called? h. What class in this diagram has the shortest lifeline? i. Would :program be an or an > Use Case of :newStudent and why? j. Would :dorm be an Use Case of newStudent and why? newStudent Studen dorm program initialize() return studentNumber return dormRoom selectProgram) return programAdvisor studentComplete)

Explanation / Answer

4.
a) This diagram is called sequence diagram. It shows object interactions arranged in time sequence.

b) newStudent UserInterface
Student
dorm
program

c) That X means destruction occurence. It is a message occurence which represents the destruction of the instance. The X symbol below dorm means that dorm object is destroyed at that moment.

d) 4 message are initiated by the newStudent. Messages are depicted using arrows. The message is initiated by the one which has tail towads itself and head towards other. In this sequence diagram , there are 4 arrows which has tail towards newStudent.

e) Second message is the one which is second from the top that is selectDorm();

f) A return message is drawn as a dotted line. In this diagram, it can be seen that there are 3 dotted lines so 3 return messages.

g) Third return message is the one which is 3rd dotted line from the top that is 'return programAdvisor().

h) Life line is destroyed using 'X' symbol. It can be seen that dorm class is the one which is getting destroyed first.

i) program will be an <<include>> use case of newStudent. <<include>> relationship is the one where base use case is incomplete without included use case and use case is mandatory. And as selecting program for the new student is a must thing , so its relationship is <<include>>

j) dorm will be an <<extend>> use case of the newStudent. <<exclude>> relationship is the one where base use case is complete in itslef, and extended one is optional. As selecting dorm is an optionl thing for new student, so its relationship is <<exclude>>.   
  

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote