Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
183 views

Programming Logic and Design

This document discusses key concepts in programming logic and design including flow charting, algorithms, variables, data types, symbols, and the role of variables. Flow charting uses symbols to represent the logic and flow of a program, identifying inputs, processes, and outputs. An algorithm specifies the sequence of operations to solve a problem. Variables are used to store and represent data in a program. Common variable types include numeric, character, string, and boolean. Mathematical expressions must follow order of operations to be properly interpreted by a computer program.

Uploaded by

Kholyn Rivas
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
183 views

Programming Logic and Design

This document discusses key concepts in programming logic and design including flow charting, algorithms, variables, data types, symbols, and the role of variables. Flow charting uses symbols to represent the logic and flow of a program, identifying inputs, processes, and outputs. An algorithm specifies the sequence of operations to solve a problem. Variables are used to store and represent data in a program. Common variable types include numeric, character, string, and boolean. Mathematical expressions must follow order of operations to be properly interpreted by a computer program.

Uploaded by

Kholyn Rivas
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

REVIEWER IN PROGRAMMING, LOGIC Preparation

AND DESIGN
- It signifies the preparation of data.
FLOW CHARTING

- Use of symbols and phases to designate Input/Output


the logic of how a problem is solved.

- 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.

- A modeling tool used to illustrate data,


instructions, process and sequence using a Process
set of standard symbols.
- Performs any calculations that are to
ALGORITHM be done.
-A finite set of instructions that specify a
sequence of operations to be carried out in
order to solve a specific problem or class of Flow
problems. Lines

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.

-Its name can have 256 characters but the


- Entry or exit when a flowchart wants
lesser the number of character, the more
to avoid spaghetti connection within
efficient the program is.
one page.

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

The role of the variable in programming is


very crucial. In the processing stage of a
- Signifies any decision that is to be program, the variables are the repository of
done. Process conditions using data and information. Depending on the
relational operators. Used for objective of the program, the data may be
trapping and filtering data. stored in the memory use for other
computation or for printing.

KINDS OF VARIABLE
DATA TYPES

NUMERIC - Destructive variable- destroys or


change value after processing
- Integer (int) - use for whole numbers - Constructive Variable – maintain
- Double or Float - numbers with value after process.
decimal points.

CHARACTER (char) – alphabets

STRING – combination of character,


numeric and special character

BOOLEAN – 1 and 0

MATHEMATICAL EXPRESSION TO
COMPUTER EXPRESSION

EXAMPLE:

3x4y3 – mathematical expression

3*(x^4)[(y^3)] or 3*x*x*x*x*y*y*y -
computer expression

 Always remember the rule of


MDAS (Multiplication, Division,
Addition, Subtraction) and
PEMDAS (Parenthesis,
Exponent, Multiplication,
Division, Addition, Subtraction)

You might also like