Flowchart (EXAM #2) Flashcards
When do we use flowcharting?
Any process we want to understand better:
- Software development
- Business process modeling
- Decision process modeling
Symbols: oval
The Start and End symbol begins and ends the process
Symbols: parallelogram
The Input/Output (a.k.a. “data”) symbol is used to represent inputs from the user or outputs to the user
Symbols: rectangle
The Process symbol is used to represent any type of function or action. This symbol may be used to represent one step or a sequence of steps.
Symbols: arrow
The Flow symbol represents movement to the next operation
Symbols: diamond
The Decision symbol is a junction where a decision must be made. A decision must return true or false
Symbols: circle
The Connector symbol is used when more than one flow arrow head needs to come together.
Flowchart
efficient way to express algorithms in a succinct and precise manner
- valuable when conceptualizing a process, analyzing requirements, and training workers and users
- used by both technical and nontechnical people (commonly used by managers, engineers, and software developers)
variable name conventions
use short variable name, should not be separated by spaces cause computer programs think of variables as a single entity & will interpret a space as the end of the variable name
variable legends
include legend to show short variables & their associated meaning so the reader can understand what the short name means
Flow Control Patterns
- sequence
- selection
- repetition
Sequence Pattern
one step is completed followed by a next step & so on
Selection Pattern
the answer to a question causes a branch in the process, thus some steps are skipped under certain circumstances. As we define a decisions, it will return either true or false.
-have selection decision structures:
+if then else
+if then null else
+nested selection
Repetition (looping, iteration)
allows 1+ actions to be repeated until a condition is met, a step or set of steps is repeated until a certain condition is met
Why Gotos are prohibited?
In the early days of programming, programmers often used a programming flow control feature called a goto that would allow a program to jump from one location to another location. For example, a program may jump from near the beginning to near the end and then to the middle. Programs jumped all over the place. This practice made it difficult to maintain and update programs because it was almost impossible to follow the logic of a program from start to finish in a linear fashion.