Provide a step-by-step description of how to create a structure chart.
What will be an ideal response?
Typically, three steps are followed when creating a structure chart. Data flow diagrams (DFDs) are reviewed to identify the processes and methods, identify the program modules and determine control-subordinate relationships, and add symbols for couples and loops. Afterward, the structure chart is analyzed to ensure that it is consistent with the system documentation.?STEP 1. REVIEW THE DFDS: The first step is to review all DFDs for accuracy and completeness, especially if changes have occurred since the systems analysis phase. If object models were also developed, they should be analyzed to identify the objects, the methods that each object must perform, and the relationships among the objects. A method is similar to a functional primitive and requires code to implement the necessary actions.?STEP 2. IDENTIFY MODULES AND RELATIONSHIPS:Working from the logical model, functional primitives or object methods are transformed into program modules. When analyzing a set of DFDs, remember that each DFD level represents a processing level. If DFDs are being used, one works way down from the context diagram to the lower-level diagrams, identifying control modules and subordinate modules, until the functional primitives are reached. If more cohesion is desired, processes can be divided into smaller modules that handle a single task.?STEP 3. ADD COUPLES, LOOPS, AND CONDITIONS:Next, couples, loops, and conditions are added to the structure chart. If DFDs are being used, the data flows and the data dictionary can be reviewed to identify the data elements that pass from one module to another. In addition to adding the data couples, control couples are added where a module is sending a control parameter, or flag, to another module. Loops and condition lines that indicate repetitive or alternative processing steps are also added. If an object model was developed, the class diagrams and object relationship diagrams can be reviewed to be sure that the interaction among the objects is fully understood.
You might also like to view...
If Circle is a structure, what does the following statement do?
``` Circle *pcirc = nullptr; ``` a. It declares an empty structure variable named *pcirc. b. It declares a structure pointer called pcirc initialized with a null pointer. c. The statement is illegal in C++. d. It initializes a null pointer with the value of the Circle pointer. e. None of these
What is the output of the following code?
``` public class Test { public static void main(String[] args) { String s1 = new String("Welcome to Java!"); String s2 = new String("Welcome to Java!"); if (s1.equals(s2)) System.out.println("s1 and s2 have the same contents"); else System.out.println("s1 and s2 have different contents"); } }``` a. s1 and s2 have the same contents b. s1 and s2 have different contents
Ethernet uses ____ to prevent data packets from colliding on the network.
A. CSMA/CD B. CSMA/CA C. AppleTalk D. LPC
Consider the following statements:struct personalInfo{ string name; int age; double height; double weight;};struct commonInfo{ string name; int age;}; personalInfo person1, person2;commonInfo person3, person4;Which of the following statements is valid in C++?
A. person1 = person3; B. person2 = person1; C. person2 = person3; D. person2 = person4;