Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

from graphviz import Digraph def create _ numerically _ labeled _ dfd ( ) : dot = Digraph ( comment = 'Level 1 DFD '

from graphviz import Digraph
def create_numerically_labeled_dfd():
dot = Digraph(comment='Level 1 DFD')
# External entities
dot.node('E1','(E1) Customer', shape='box')
dot.node('E2','(E2) Payment Processor', shape='box')
dot.node('E3','(E3) Shipping Company', shape='box')
# Processes
dot.node('P1','(P1)1.0 Customer Order Handling')
dot.node('P2','(P2)2.0 Order Processing')
dot.node('P3','(P3)3.0 Order Fulfillment')
dot.node('P4','(P4)4.0 Shipping')
dot.node('P5','(P5)5.0 Payment Processing')
# Data stores
dot.node('D1','(D1) Customer Orders Data', shape='cylinder')
dot.node('D2','(D2) Inventory Database', shape='cylinder')
dot.node('D3','(D3) Shipping Information', shape='cylinder')
dot.node('D4','(D4) Payment Records', shape='cylinder')
# Data flows
dot.edge('E1','P1', label='(F1)')
dot.edge('P1','P2', label='(F2)')
dot.edge('P2','P3', label='(F3)')
dot.edge('P3','P4', label='(F4)')
dot.edge('P1','P5', label='(F5)')
dot.edge('P5','E2', label='(F6)')
dot.edge('P4','E3', label='(F7)')
# Updates to Data Stores
dot.edge('P2','D1', label='(U1)')
dot.edge('P3','D2', label='(U2)')
dot.edge('P4','D3', label='(U3)')
dot.edge('P5','D4', label='(U4)')
# Render and view the graph
dot.render('dfd_numerical_labels', format='png', view=True)
create_numerically_labeled_dfd() Run this code for me and show me the image

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions