Copyright 2001 (c) Logic Code Generator Ltd; You must not take information from this web page and reuse without the owner's permission!

LogicCoder Tutorial 7 of 7: ABSTRACTION OF A CONTROL LOGIC

How to Abstract and Expand the Control Logic

If you have a flowchart that illustrate the control logic for a program with details that you do not want to see, LogicCoder provides you with facilities to select the details you do not want to see and then abstract that detail away from view. LogicCoder will place the abstracted detail in a special file and represent the details by a special symbol. On the other hand, if there are hidden information in a flowchart that you wanted to know about, LogicCoder provides you with facility to expand the hidden information to bring it to view. In both cases, the flowchart maintains its logical consistency.

This section of the tutorial shows you how to use these facilities in LogicCoder and how to insert template structures in an existing flowchart in order to expand the control logic and/or to build complex software systems from existing components.

At the end of going through these tutorials you should
Use LogicCoder GUI system to draw the flowchart for a relatively simple Input/Output program problem solution.
State the Advantages and Disadvantages of using Flowcharts to represent the Control Logic of a Computer Program

In this web page I show you the the following features of LogicCoder:

How to select sections of a flowchart and highlight them by colour coding.

How to Copy, Cut and paste sections of selected flowchart.

How to use LogicCoder to minimize a complex system to an abstract view.

How to use existing logic components to quickly build more complex software systems without necessarily having to write a single line of code

You get a free tutorial version of LogicCoder for ANSI C/C++ and BASIC programming whenever you make on-line purchase of any of the following books.

  • Structured Programming with BASIC I; ISBN 0-9544270-1-7; Price $44.00 USD
  • Structured Programming with ANSI C; ISBN 0-9544270-0-9; Price $56.00 USD
  • Object Oriented Programming with ANSI C++; ISBN 0-9544270-3-3; Price $66.50 USD

If you are doing this tutorial online, then you should have gone through the previous tutorial document before starting this section. CLICK HERE IF YOU HAVE NOT DONE THE PREVIOUS SECTION.

Click the following link to download the tutorial in PDF format. Click to download. You must observe all copyright in using the tutorial document. Here is a quick review of the program problem specification to begin with.

A program is to be designed and then coded in ANSI C/C++ that creates an output listing of telephone information on individuals. A sample of input data to be used for testing the program and the resulting output from the program is given as follows. .




LogicCoder allow you to set the symbol display colour in either of two ways.
(1) You can select one or more symbols at a time and use the Symbol Fill Colour function to select the colour you want or
(2) You can set the default fill colour as you draw flowchart symbols in a document.
In our tutorial program, the default symbol fill colour is the value selected by the system at start-up. I.e. Green. You can change this value by executing the Default Symbol Fill Colour function in the Settings pull-down menu.

It is some times useful to highlight a group or sequence of symbols in a flowchart by setting them to a common colour. This may be for pedagogic or documentation reason for example. In this section of the tutorial we want to highlight sections of the flowchart we intend to abstract in order to create a simply abstract view of our system.

An abstract view of a system simplifies the overall understanding of the control logic of the system without loss of essential information. More advance versions of LogicCoder allows you to select sections within a flowchart and then abstract them to the Predefine Abstract symbol. The Predefine Abstract symbol is represented as explained in figure 23. LogicCoder also allow you to expand an abstracted view so as to replace its original detail.


An abstract view of the control logic

In the next few exercises, you will learn how to select groups of symbols to perform common operations on them.

Use the same process as in step 1 to select the first process symbol, the decision symbol and the symbols that constitute the body of the loop in the flowchart and then execute the Symbol Fill Colour function once more as in step 3. This time you will select a different fill colour.


Select the colour red in the colour dialogue window and then click the OK button or press the Enter key once.

Your document should appear similar to that in figure 25.

Select the last Input/Output symbol and then change its colour so that it appears as illustrated in figure 26.







Using colour schemes.

Select the last Terminal symbol and then execute the Write Symbol Text function so that its text appears as illustrated in figure 26.


LogicCoder supports the incremental approach to the development of complex software systems both by the (1) bottom-up and the
(2) top-down design approach.
(1) The bottom-up approach allow you to design a complex system by adding more functional components to an already existing system until a refined result that meets a specific requirement is reach. You use LogicCoder Insert Structure or Insert Symbols to insert other functions or flowchart sections into an existing flowchart. You can also change selected symbols in a flowchart.



Selecting sections highlighted by colour scheme


Copy right May 2002
Logic Code Generator
142a Shenley Road
Hertfordshire WD6 1EQ
Tel: +44(0)203 538 6133
EMail: info@

You must not take information from this web page and reuse without the owner's permission!



Home | Contact us | Online Service | Links