2 Exercise#1For 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.

5 Exercise#2A 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.

6 SolutionDraw a UML use case diagram for the university car park system.

8 Solution (cont.)Write the flow of events for one of use cases . ( Enter Car Park )  primary flow of event (normal)RequestResponse1. The driver inserts his/her card.2. The card reader reads the card number. 3. The system checks if the card number is in the list of valid card numbers. 4. The system checks if there is a space. 5. sends a message to the barrier to lift up. 6. The sensor sends “car passed” message to the system. 7. The sensor sends a message to the barrier to lower. 8. The system decreases the number of available spaces by 1.

9 Solution (cont.)  Alternative flow of event Request Response1. The driver inserts his/her card.2. The card reader reads the card number. 3. The system checks if the card number is in the list of valid card numbers. 4. The system checks if there is a space. ( if The car park is full. ) 5.A sign at the entrance displays “Full” 6.switched off when a vehicle leaves.

10 Solution (cont.)  Error flow of event Request Response1. The driver inserts his/her card. 5.Driver re-enter his/her card2. The card reader reads the card number. 3. The system checks if the card number is in the list of valid card numbers. ( if the system can’t check) 4. The system restart The card reader reads the card number. 7. The system checks if the card number is in the list of valid card numbers. 8. The system checks if there is a space. 9. sends a message to the barrier to lift up. 10. The sensor sends “car passed” message to the system. 11. The sensor sends a message to the barrier to lower. 12. The system decreases the number of available spaces by 1.

About project

Feedback

To ensure the functioning of the site, we use cookies. We share information about your activities on the site with our partners and Google partners: social networks and companies engaged in advertising and web analytics. For more information, see the Privacy Policy and Google Privacy &amp Terms.
Your consent to our cookies if you continue to use this website.