Week 4 PRELIMS Flashcards
A visual lining tool. They can be used to represent an algorithm.
Flowchart
The sequence of steps necessary to solve any problem.
Algorithm
Indicates the starting point or stopping point in the logic. Every flowchart should start and end with this symbol
Terminal Symbol (Oval Shaped)
Represents an input or output process in an algorithm, such as reading or writing output.
Input/Output Symbol (Parallelogram Shaped)
Represents any single process in an algorithm, such as assigning a value or performing a calculation.
Process Symbol (Rectangle Shaped)
Represents a module in an algorithm, that is, a predefined process that has its own flowchart.
Predefined Process Symbol (Rectangle Shaped with a line at each end of the shape)
Represents a decision in the logic involving the comparison of two variables. Alternative paths are followed depending on whether the decision is true or false.
Decision Symbol (Diamond Shaped)
Connects various symbols in a flowchart and contain an arrowhead only when the flow of control not fom top to bottom or left to right
Flowlines (A line with a Arrow Head at the end of it)
What are the 5 Arithmetic Operators
(+) (-) (*) (/) (%)
This operator adds its operands together.
Addition Operator
This operator subtracts one operand from the other.
Subtraction Operator
This operator divides the first operand by the second. Any remainder is dropped in order to return an integer value. If one or both of the operands are floating point values, the division operator performs floating point division.
Division Operator
This operator (%) is informally known as the remainder operator because it returns the remainder after an integer division.
Modulus Operator
It is used to increase an integer’s value by one, and it is used commonly in C++ operators.
Increment Operator
What are the 2 forms of Increment Operator
Prefix
Postfix