ExamBank Scot · AH Computing Science question bank · All AH Computing Science questions
2 marks · UML use case diagrams
State an additional actor that is required for this system. With reference to the use case diagram above, explain the difference between include and extend relationships. A simplified UML use case diagram for an appointments app is shown below. enter appointment title <<include>> add new enter appointment <<extend>> appointment location <<extend>> set appointment reminder edit appointment details delete appointment details user When creating a new appointment, users of the app must enter a title for the appointment. If they wish, users can also add a location for the appointment and set a reminder.
Database to store event details is needed. Award 1 mark for database actor The include relationship shows a use case that must be carried out in order to complete the base case (in this situation, a title must be provided for any new event) whereas the extend relationship shows an optional use case that adds more functionality to the base case (in this situation, users can enter a location or set a reminder, but they don’t have to). Award 1 mark for correctly describing the difference between the mandatory and optional nature of the include and extend relationships. Accept alternative wording for mandatory and optional but explanations must be round the correct way.