HW10: Chapter 5
System Modeling
5.3. You have been asked to develop a system that will help with planning large-scale events and parties such as weddings, graduation celebrations, and birthday parties. Using an activity diagram, model the process context for such a system that shows the activities involved in planning a party ( booking a venue, organizing invitations, etc.) and the system elements that might be used at each stage.This diagram does not include food, drinks, decorations, chairs, equipment, DJ, photography, or the other myriad of things possible at a party. It simply goes through the process of determining the size, date, venue, guest list, and invitations.

5.5 Develop a sequence diagram showing the interactions involved when a student registers for a course in a university. Courses may have limited enrollment, so the registration process must include checks that places are available. Assume that the student accesses an electronic course catalog to find out about available courses.

5.7. Based on your experience with a bank ATM, draw an activity diagram that models the data processing involved when a customer withdraws cash from the machine.

5.8. Draw a sequence diagram for the same system. Explain why you might want to develop both activity and sequence diagrams when modeling the behavior of a system.
Developing a sequence diagram as well as an activity diagram has a few benefits. The process of withdrawing money from an ATM involves authentication of the user, checking if the user has the appropriate amount of money in their account, checking if the ATM has the appropriate amount of money, transmitting the account information to the bank system and back to the user, etc. Additionally, there are several actions that can take place at the ATM and a sequence diagram can capture that process as well as specify the various failures that may take place during the process. Also, sequence diagrams are good at modeling interactions between users (user - ATM)and objects and the objects themselves (bank - ATM).
Comments
Post a Comment