120 likes | 481 Views
Kingdom of Saudi Arabia Ministry of Higher Education Princess Noura bint Abdulrahman University College of Computer & Information Sciences. IS424 - Assignment#1. DFD + Use-Cases. Exercise#1. For the following situation, draw a context-level diagram and a level-0 data flow diagram.
E N D
Kingdom of Saudi Arabia Ministry of Higher Education Princess NourabintAbdulrahman University College of Computer & Information Sciences IS424 - Assignment#1 DFD + Use-Cases T. ShathaAlAjlan
Exercise#1 For the following situation, draw a context-level diagram and a level-0 data flow diagram. Kellogg State Bank provides car and home loans to its banking customers. Initially, a potential loan customer meets with a Kellogg loan officer, requests a loan for a certain amount and time frame, and completes a loan application. Next, the loan officer determines the customer’s credit standing, the type of loan required, and available interest rates. While the loan officer can authorize car loans for credit worthy customers, a loan committee must approve all home loans.
Solution A suggested context-level data flow diagram is provided below.
Solution (cont.) A suggested level-0 data flow diagram is provided below.
Exercise#2 A university wishes to increase security in its car park. It has been decided to issue an identity card to all employees. The cards record the employee’s name, department and identity number . A barrier, a card reader and a sensor are placed at the entrance of the car park. The driver inserts the numbered card into the card reader. The card reader checks the card number. If the number is valid, the reader sends a signal to raise the barrier and the vehicle can enter the car park. The sensor sends a signal to the barrier to lower when the vehicle has entered. There is a system at the exit with a barrier which is raised when a car wishes to leave the car park. When there are no spaces in the car park a sign at the entrance displays “Full” and is only switched off when a vehicle leaves. Special visitors’ cards, which record a number and the current date, also permit access to the car park. Visitors’ cards may be sent out in advance or collected from reception. All visitors’ cards must be returned to the reception when the visitor leaves the site so that they can be deleted from the list of valid cards.
Solution • Draw a UML use case diagram for the university car park system.
Solution (cont.) Write the flow of events for one of use cases .( Enter Car Park ) • Use Case#1 • Use Case Name :Enter Card Park • Use Case Description : a driver Enter card to card reader then to car park • Primary Actor : driver • Secondary Actor :System • Pre-Conditions :1.Driver should have a valid card • Post-Conditions1.car enter car park
Solution (cont.) • Write the flow of events for one of use cases .( Enter Car Park ) primary flow of event (normal)
Solution (cont.) Alternative flow of event
Solution (cont.) Error flow of event