0% found this document useful (0 votes)
141 views

Solved Sheet 4 DFD

The document contains 7 questions asking to draw context data flow diagrams, level-0 diagrams, decision tables, and decision trees for various systems including a vehicle maintenance depot system, grading system, patient information system, sales promotion policy, pizza order system, and fast food restaurant system. Participants in the diagrams include customers, mechanics, students, professors, patients, doctors, and drivers. The diagrams are used to model the flow of information and processes within the systems.

Uploaded by

Noha Atef
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
141 views

Solved Sheet 4 DFD

The document contains 7 questions asking to draw context data flow diagrams, level-0 diagrams, decision tables, and decision trees for various systems including a vehicle maintenance depot system, grading system, patient information system, sales promotion policy, pizza order system, and fast food restaurant system. Participants in the diagrams include customers, mechanics, students, professors, patients, doctors, and drivers. The diagrams are used to model the flow of information and processes within the systems.

Uploaded by

Noha Atef
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Q1: Draw a context Data Flow Diagram and Level-0 diagram for a vehicle

maintenance depot syst em. It contains a process that represents the


system to model, in this case, the "vehicle maintenance depot system". It
also shows the participants who will interact with the system. In this
example, there are Customer and Mechanics. A Customer requests
inspection and a Mechanics can Order Parts. (--- Pts.)

Q2 - Draw a context Data Flow Diagram and Level-0 diagram for a


GRADING SYSTEM. It contains a process that represents the system to
model, in this case, the "GRADING SYSTEM". It also shows the participants
who will interact with the system.
In this example, there are STUDENT, STUDENT RECORDS SYSTEM,
and PROFESSOR.
Q3 Draw a context Data Flow Diagram and Level-0 diagram for a PATIENT
INFORMATION SYSTEM. It contains a process that represents the
system to model, in this case, the “PATIENT INFORMATION
SYSTEM". It also shows the participants who will interact with the
system. In this example, there are PATIENT, and DOCTOR.
Context Data Flow Diagram
Level-0 diagram

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

Sales Promotion Policy (final version)

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

You might also like