You are on page 1of 2

ECT 108 Flowcharts and Number Systems Lab 1 1.

Describe each of the Flowcode flowcharting symbols in the table below. Used for: This shape was used to add a comment or additional descriptive text to a software flowchart. A dotted line should extend from the comment to the symbol it references. This shape is seldom used today. Used for Loop icons are used to repeat a task untill specified conditions are fulfilled.

Used for: jump point the point in the flowchart to jump from. Used for: connection point the point in the flowchart to jump to. Used for: Input icons check the specified port and/or bits for their value and then place the resulting value into the specified variable. Used for: Decision icons allow you to test a condition and redirect the flow according to the outcome. Icons can be placed in either branch from the decision icon.

Used for: In most flowcharts, the rectangle is the most common shape. It is used to show a process, task, action, or operation. It shows something that has to be done or an action that has to be taken. Used for: Component macros are pre-defined macros supplied with the components. Used for: Macros are sections of code, that can be used and reused in projects. Macros allow complex tasks to be handled by pre-written code and they can be imported and exported. Within Flowcode there are three types of macros: Flowcode internal, Macros consisting of, and I/O device macros. Used for: to slow down program execution and for program timing. They are particularly useful in slowing program execution speed down to allow for human interaction.

ECT 108 Flowcharts and Number Systems 1. Why should a programmer use flowcharts? Programmers should use flowcharts because it is a pictorial representation of the logical steps it takes to solve a problem. 2. Define a sequence structure. Is a programming structure in which you perform an action or task, and then you perform the next action in order. A sequence can contain any number of tasks, but there is no chance to branch off and skip any tasks. 3. Describe how a selection structure works. Works by asking a question, and depending on the answer, you take one of two courses of action. Then no matter which path you follow you continue with the next task. 4. How does a loop structure operate? It works by you continuing to repeat actions based on the answer to a question 5. Which structure is a group of tasks executed unconditionally one at a time? Stacking Structures 6. The selection/decision structure requires a question be asked that results in a True or False condition.

7. The statement If condition is true then do one process else do the other process is an example of a selection structure.

8. Which structure repeats a segment of code until the segment is no longer needed? Loop Structure 9. Another name for a loop is repetition or iteration.

10. Programmers often refer to a loop as a DO WHILE construct.

You might also like