Solved Sheet 4 DFD
Solved Sheet 4 DFD
Patient
name
Changes to Patient Doctor
information
Patient
Patient Patient
1 information to delete 2
name Find Delete
patient patient
Patient Deleted
info to be Patient patient
updated information
D1 Patient Information
Updated
Changes to patient
patient information 3 information
Update Patient
patient information
4
New patient information Add new
patient
Q4: Draw the decision table and decision tree for this problem.
SAMPLE OF A SALES PROMOTION POLICY:
• Preferred customers who order more than $1,000 are entitled
to a 5% discount and an additional 5% discount if they used
our charge card.
• Preferred customers who do not order more than $1,000
receive a $25 bonus coupon.
• All other customers receive a $5 bonus coupon.
Solution
Decision table
Decision tree
Q5: The following Level-0 diagram represents an information system.
Identify the errors in this diagram, and state the reason. (10 Pts.)
Solution
1. Process 1.0 (P2) has only inputs, making it a black hole;
2. Data flow DF5 should not move directly from entity E1 to
data store DS1 without first going through a process;
3. Data flow DF1 should not move directly from entity E1 to
entity E2 without first going through a process.
Q6: Perfect Pizza wants to install a system to record orders for pizza
and chicken wings. When regular customers call Perfect Pizza on
the phone, their phone number goes automatically into the Pizza
system. The phone number invokes the name, address, and last
order date comes automatically up on the screen. Once the order is
taken, the total, including tax and delivery is calculated. Then the
order is given to the cook. A receipt is printed. Occasionally, special
offer (coupons) is printed so the customer can get a discount.
Drivers who make deliveries give customers a copy of the receipt
and coupon (if any). Weekly totals are kept for comparison with last
year’s performance.
Draw a context Data Flow Diagram and Level-0 diagram for Perfect
Pizza. (20 Pts.)
Q7: Draw a context diagram and Level-0 diagram for the fast–food
restaurant, Hoosier Burger uses an information system to take
customer orders, send the orders to the kitchen, monitor goods
sold and inventory, and generate reports for management.
Draw a context Data Flow Diagram. (20 Pts.)
Solution