Beruflich Dokumente
Kultur Dokumente
EXAMINATION PAPER:
Campus School Department Level TITLE OF PAPER COURSE CODE Date and Time
Maritime Greenwich Computing and Mathematical Sciences Computer Sciences Four Systems Building 1 COMP 1152 May 2011 - 3 hours
You MUST answer FOUR questions. You MUST answer question 1. Marks will be awarded for your best THREE answers to the remaining FIVE questions. If you answer more than THREE questions of the remaining FIVE, marks will ONLY be awarded for your THREE best answers. Each question is worth 25 marks. You have additional 15 minutes reading time for the case study in the appendix.
APPROVED__________________________________________________________
Questions 1- 4(a) refer to the SimplyTheBest (STB) case study in the appendix.
You MUST answer question 1. 1. (a) Draw an UML class diagram based on Paragraphs 7 and 8 of the STB case study. Look for opportunities to use the generalisation and composition and/or aggregation symbols. You should include main attributes and methods that capture the important states and behaviours of the major classes. Do not model aspects that are not mentioned in these paragraphs of case study. [12 marks] (b) Create a Crows Foot ERD based on Paragraphs 3, 4 and 5 of the STB case study. Show the main entities, attributes and relationships. You should clearly label the relationships and indicate multiplicities and inclusiveness of them. [13 marks]
2.
Using UML, construct a use case model based on Paragraphs 7 and 8 of the STB case study. You should identify ALL the main actors and as many as possible use cases for each of the actors identified. Look for opportunities to use <<include>> and/or <<extend>> relationship. For any extension you should also indicate extension point(s). [25 marks]
APPROVED__________________________________________________________ 3. (a) Construct an UML sequence diagram for the scenario where a STB Customer gets an online order form, fills in the form and submit the order. The system will save the order in a databases and if succeeded will display a confirmation message to the Customer. [10 marks] Draw an UML state machine diagram for an object of the Order class of the STB case study. When an order is initialised upon receiving a Customer request, it will be waiting for a quotation. When the quotations come back from the different suppliers/manufactures, they will be compared/checked and assembled according to the original order. A response will be sent to the Customer for consideration. If the Customer confirms Order, the corresponding requests for production will be sent to the suppliers/manufacturers. You should identify and depict the main state and state transitions; indicate any triggers that cause these transitions and the guard conditions if any. [15 Marks]
(b)
4.
(a)
(i)
Explain, including reasons, which of the Normal Forms (NF) is an appropriate description of Form 2 of the STB case study. [5 marks]
(ii)
If the data shown on the form in Form 2 of the STB case study were to be normalised to at least 3NF for storage in a relational database, write the outcomes of 1NF, 2NF and 3NF as appropriate as you carry out the normalisation. Alternatively draw the resulting 3NF tables with relationships and fields that you would use in a database. You must indicate primary/foreign keys (Hints: you can do so by underlining the primary keys such as X1 where X1 is a primary key, and adding an * to the foreign keys such as Y1* where Y1 is a foreign key) [8 marks]
APPROVED__________________________________________________________ Question 4 continued: Police were called in to search for the two discs, which contained the entire database of child benefit claimants and apparently got lost in the post in October 2007. They were posted from HM Revenue and Customs offices in Tyne and Wear, but never turned up at their destination - the National Audit Office. The loss, which led to an apology from Prime Minister Gordon Brown, created fears of identity fraud. Critically discuss issues raised by this news item in regard to the Data Protection Act (DPA) 1998, for instance if your personal data were lost this way would you be worried and why? Explain your answer according to the eight principles of the DPA 1998 but focus only on security measures to protect the data, individuals rights in regard to their personal data, for how long the data should be kept and if the data may be transferred outside the EEC. [12 marks]
(b)
5.
(a)
Copy into your answer sheet and complete the table below (Figure E2). For each entry draw and name four symbols used in that sort of diagram (e.g. arrows/shapes/characters). E.g. a UML use case diagram might include: Interaction UML State Machine Symbols Used UML Class and Use case
Chen ERD
Figure E2
[12 marks]
(b)
Discuss with at least three points for each diagram type, why you would use or not use the UML use case and the UML sequence diagrams during system building. (Hint: you could say that the UML use case diagram would be good for and not good for because The UML sequence diagram would be good for and not good for because ) [13 marks]
APPROVED__________________________________________________________ 6. (a) Describe the Waterfall System Development Life Cycle (SDLC) model in terms of the main stages/phases, the main activities and the important documentations generated in each stage/phase. [12 marks] (b) Suppose you are responsible for planning a development project for a large banking system. (i) Will you use the Waterfall model? Explain your answer. [6 marks] (ii) Will you use the code-and-fix model? Explain your answer. [7 marks]
APPROVED__________________________________________________________ Appendix (the case study is to be used for Question 1-4(a) only) SimplyTheBest (STB) - the Toy Manufacturer Case Study
The company
1. STB is a supplier/manufacturer of widely recognised international brands of toys in China. It has offices in Shanghai and Hong Kong. It employs over 300 office staff and has a factory in Guangdong, China. The company now increasingly outsources most of its production to a growing number of third party manufacturers from within China as well as in the South East region of Asia. 2. The managing director of STB Mr. Michael Chang has realised that one of their emerging competitors from the Tianjin special economic region near Beijing has installed a highly efficient database system and their lead time (the time from the order is made to the products are delivered) has been cut down dramatically. Mike is a graduate from the Business School of Greenwich University, U.K. and has a good connection with the company at Greenwich where you work as an IT system consultant. He has requested to meet up with you to discuss a possible solution that would computerise an order processing system first and then in the near future a web-based B2B (business to business) system which will allow the suppliers/manufacturers, the customers (e.g. large department stores) and other independent retailers to conduct business with STB.
APPROVED__________________________________________________________ and terms and conditions are compared/checked. If satisfactory, an order response will be assembled and send to the customer. The customer will confirm or reject the order. If the customer decides to proceed, STB will get a confirmation. STB staff will send requests for production to the suppliers/manufactures and sign a contract with them. The order will be archived for later use. 5. The supplier will deliver the requested product according to the terms of the contract. Shipments of the products are carried out by the logistic companies. One shipment may be for many orders and an order may contain many products, but an order will always be delivered via the logistic company in whole. 6. The manual processing of orders at STB, which often involves coordination of a large number of retailers, manufacturers and logistics, turns out to be very time consuming and often error-prone. In their Shanghai office alone, more than a hundred people are employed and a typical order cycle will normally be around several weeks. During festive seasons such as Christmas or the Chinese New Year, the situation can become much worse. Form 1: Customer order form Customer Order Customer Name Customer Number Address Order Number Order Date
Payment method (tick as applicable) Cheque Credit Card Product Name Product ID Product Qty Unit Cost
Items ordered 1 2 3 4
Unit Size
Unit price
Quantity
Sub Total