Programming Logic and Design
Programming Logic and Design
AND DESIGN
- It signifies the preparation of data.
FLOW CHARTING
- A common method for defining logical - Data are to read into the computer
steps of flow within a program by using a memory from an input device or data
series of symbols to identify the basic input, are to be passed from memory to an
process, output function. output device.
VARIABLES
- Signifies process that is to be
-A primary storage location that can hold executed the next. Defines the
different numeric or alphanumeric values. logical sequence of the program. It
CHARACTERISTIC OF VARIABLES: points to the next symbol to be
performed.
-Must be descriptive and significant to the
data, problem and its solution
On page
-Combinations of alphanumeric characters
connector
can be used as variable name.
Off page
SYMBOLS connector
Terminal
- Use to signify the beginning and end - Entry or exit when flowchart needs
of a program. more than one page.
Decision ROLE OF VARIABLE
KINDS OF VARIABLE
DATA TYPES
BOOLEAN – 1 and 0
MATHEMATICAL EXPRESSION TO
COMPUTER EXPRESSION
EXAMPLE:
3*(x^4)[(y^3)] or 3*x*x*x*x*y*y*y -
computer expression