CH 5 Ans
CH 5 Ans
The way in which a system boundary is defined, and an appropriate context model is
created may have serious implications on the complexity and cost of a project. Give two
examples where this may be applicable.
Answer:
2. Smart-home control system: Treating each IoT device as external requires custom
adapters for different vendor protocols, increasing development complexity.
Encompassing device firmware updates and certification within the boundary
balloons the project’s scale and support costs.
• 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.
Answer:
1. Define Event: User enters event details → EventProfile module logs data.
o Schedule Appointment: Doctor views available slots and books a patient visit
through Mentcare.
o View Patient Record: Doctor retrieves and reviews medical history and test
results.
• 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.
Answer:
4. If sufficient → Dispense Cash → Print Receipt → Eject Card → End; if any check fails
→ Display Error → Eject Card → End
• 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.
Answer:
Sequence of messages:
o An automatic washing machine that has different programs for different types
of clothes.
o The control software for the camera on your mobile phone. Ignore the flash if
you have one on your phone.
↓ ↖ Eject
Eject