SUBJECT: ADVANCED BUSINESS ANALYSIS IV (ABL401T)
- SECTION A: MASEKENI BOOKSHOP CASE STUDY
Max owns a second hand book shop on the busy street in town. The book shop buys and sells second hand books, but also has a small private library of rare books which he loans to local people. He has to keep a careful record of each loan and return. Before anyone can borrow any books they must register with the book shop and pay a deposit. The deposit is repaid when a person wishes to cease membership of the library if all the borrowed books have been returned in good condition.
When someone offers a book for sale Max searches his catalogue of books to see if he already has a copy either in the library or for sale. If so he checks how much he paid for the copy or copies he already has. If he has several copies of the book already he may decline to buy the book, or offer a reduced price. If Max doesn’t already have a copy of the book he will offer to buy it, paying a reasonable price depending on its condition and rarity.
Max has realised that the supply of second hand books locally has diminished and has decided to set up a web site where people can offer their books to Max to buy. He realises that the seller of a book would have to input the condition of a book as well as the title and publication date. The web application would have to decide what price to offer by retrieving the purchase and selling price of any previous copies of the book. If the potential seller agrees to the price a transaction number would be displayed for the seller to include when sending the book. Max will send a cheque to the seller when the book is received. If the application could not calculate a price Max would like an e-mail notification so he can value the book himself.
Questions
a.Produce an Activity diagram for the current system of the scenario above. (20 marks)
b.Produce a sequence diagram for the use case ‘Return a book’ in the book shop and the small library system described above. A brief description of this use case is given below. (10 marks)
“The corresponding Book code and Borrower number are entered by a Librarian. The system retrieves the relevant loan and updates all affected objects. Next the librarian enters the book’s Condition on return and if the condition got worse then the corresponding book record is updated and a fine is recorded against the loan. Otherwise the loan is deleted.”
- SECTION B: MTHOLAMPILO SYSTEM CASE STUDY
The local healthcare centre has more than 3500 patients that are registered. The centre employs a number of general practitioners (i.e. doctors) and a few receptionists. Patients are officially registered with one doctor but can arrange appointments with any available one. These appointments may subsequently be cancelled. Some appointments result in one or more prescriptions. New patients are registered by a receptionist. When a patient is registered he/she provides his/her details such as name, date of birth, address, etc., and receives a unique patient number.
To book an appointment a patient should contact a receptionist. The patient provides his/her number (or date of birth) and the receptionist provides a list of available time slots for appointments. The appointment is booked with the patient’s doctor or if the patient’s doctor is not available with any available doctor. The date and time of the booked appointment are given to the patient as a confirmation.
Patients can cancel booked appointments by contacting a receptionist who will cancel appointments on behalf of patients. A patient who attends an appointment should check in first using a special terminal located in the waiting area of the Health Centre. The patient inputs his/her number (or date of birth). The system checks the details and confirms that the patient has been checked in. Doctors record appointment outcomes and details of prescriptions (if any) during the appointments i.e. all prescriptions issued by doctors are recorded on the patient’s record. Patients who leave the area where the Health Centre is located are de-registered by receptionists.
Questions
c.Produce a sequence diagram for the use case ‘Check in’ in the Medical Appointments system described above. A brief description of this use case is given below. (15 marks)
“The patient enters his/her date of birth. The system searches the patient’s and appointment’s details and displays the patient’s name, the appointment details (date, time) and the doctor’s details (name, room no.)”.
d.What activity diagram would you produce for this system? (15 marks)