COMPUTER SCIENCE - PSEUDOCODE AND FLOWCHARTS - CHAPTER 12 / 2.1.2…
COMPUTER SCIENCE - PSEUDOCODE AND FLOWCHARTS - CHAPTER 12 / 2.1.2
Decision making and branching -
Computational steps of processing functions of a program -
Input or output of data -
Start and end of the program -
Direction of flow -
Flowcharts use symbols to represent processes, selection, iteration, input and output.
Flowcharts are useful in understanding the logic of complicated problems.
Flowcharts allow a designer to see a visual representation of a problem.
Flowcharts are graphical methods of designing algorithms.
Function - a procedure that returns a value.
Procedure - a small selection of code that can be run repeatedly from different parts of the program.
Case statement - is used instead of an IF statement if their are many possible paths, used for specific discrete data values not ranges. Easier if with many specific condition paths.
Selection - a statement that represents choice in an algorithm.
Syntax - the rules of a language.
Pseudocode equivalents exist for comments, variables, arrays, selection, iteration, input and output, functions and procedures.
Programmers can use pseudocode to plan and design programs.
Pseudocode is set out with the same structure as a programming language.
Pseudocode is a text based list of instructions that specify how a program should work.
Pseudocode and flowcharts are tools that a programmer may use to help design a program, or understand one that already exists.