Ff Flashcards
(37 cards)
Symbol characters used to perform operations on variables and values.
Operations
Used to perform basic mathematical operations
Arithmetic Operators
Used to assign values to variables.
assignment operator
Use to compare two variables. The result of the relational is either true or false.
Relational Operation
Used to determine whether an expression is true or false.
Logical Operators
Used to increase or decrease the value of a variable 1. Using ++ to increase and – to decrease
Increment and Decrement
used to increase or decrease
the value of a variable by 1. using “++” increase the value and “–”
decrease the value
Increment and Decrement Operators
Used to perform operations on individual bits.
Bitwise Operations
Java statements that alows us to select and execute specific blocks of code while skipping other sections.
Decision Control Structure
specifies that a statement (or block of code) will be
executed if and only if a certain boolean statement or
condition is true.
If-Statement
used when we want to execute a certain
statement if a condition is true, and a different statement if the
condition is false.
Else Statement
something the
result of
which is not
readily
available.
Problem
It states that
the same goal can
be achieved
through different courses of action
and a variety of
paths, so the
same result can
be derived in a
number of ways.
Law of Equifinality
The word algorithm relates to the name of the mathematician Al-Khwarizmi, which means “procedure” or a “technique”
Algorithms
set of steps that generates a finite
sequence of operations which leads to
the solution of a given problem (or
create a product)
Algorithms
An algorithm may or may not require
input.
Input
Each algorithm is expected to
produce at least one result
Output
Each instruction must be
clear and unambiguous.
Definiteness
If the instructions of an
algorithm are executed, the algorithm
should terminate after finite number of
steps
Finiteness
a pictorial or
diagrammatic representation of an
algorithm so that it can be easier
and quicker to understand
Flowchart
Flowcharting symbols used mirror
computer programs
− They contain steps to solve a
problem to achieve a specific
result
Program Flowcharts
They contain solutions of many
problem units together that are
closely related to each other and
interact with each other to
System Flowcharts
v Any error can be easier to detect
because it is a visual representation
of the logic of a program
v Easy and quick to follow
v Serves as a type of documentation,
which can be useful in case of
program modification (in the future)
Program Flowcharts
used to show the
start and end of a set of
computer-related processes
Terminal