Analysis
Design
Installation
Documentation
Development and testing
Evaluation and maintenance
Process
External entity
Data store
Data Flow
A hotel accepts online bookings for its hotel rooms. Guests make a booking online and the booking is received by the hotel. When customer arrives, they are given an electronic key which includes encrypted data that will unlock the door and allow purchases at the bar. At the end of the stay, the guest is presented with a bill which must be paid before leaving.
Steps in creating Context DFD
When the guest sends their online booking, the room availability is checked and the booking details are stored. When the guest arrives, their key card is activated by retrieving the room access details. When the guest is ready to leave, a bill is produced by retrieving the booking details and any bar expenditure from the bar system. When payment is made, the booking detail are updated to confirm that payment has been made.
Steps in creating Level 1 DFD
More symbols on Flowchart, about data storage
Example of a system flowchart, can you guess what is the system it is describing?
Example:
Draw the flowchart for the following scenario:
A pizza delivery company accepts orders of pizzas by phone. The customer is asked for their address. If the address is not within the delivery area, then the order is stopped. If the address is within the delivery area, then the customer is asked for their order. The customer is offered the option to have garlic bread as a starter. If the customer does not accept, then the order continues to payment. If the customer choose to pay by cash, then the order is complete. If the customer chooses to pay by credit card or debit card, then the customer is asked for their card details. If the card details are accepted, then the order is complete. If the card details are not accepted, then the customer is asked to repeat the card details.
Data dictionary is a table that contains how data is stored in an application
It contains the following fields:
It may also include validation rules
e.g. mj18/31/q10
Data | Validation Type | Validation Rule | Error Message |
---|---|---|---|
Surname | Presence | ||
Length | |||
DOB | Range | ||
ClassNum | Type | ||
Range | |||
StudentID | Format | ||
Class | Lookup |
Assumes we are working on a Student Table (Entity), write the validation routines for some of the fields