MATHEMATICAL OPERATORS
Addition
The computer recognizes it with the symbol +
Subtraction
The computer recognizes it with the symbol -
Multiplication
The computer recognizes it with the symbol *
Division
The computer recognizes it with the symbol /
Mod
The computer recognizes it with the symbol
Div
Remainder of the decimal part of a division
The computer recognizes it with the symbol //
Power
The computer recognizes it with the symbol **
Root
this operation cannot be symbolized so for the computer to understand we must radican power to 1 division index
((27)1/3)
HIERARCHY OF OPERATIONS
ALGORITHMIC EQUATIONS
When we program it must be understandable for the computer because of that we must organize the
operations from the smallest to the largest this in brackets
RELATIONALS OPERATIONS
the relationals operator use to compare two values
LOGICAL OPERATORS
FLOWCHART
Flowcharts use special shapes to represent different types of actions or steps in a process. Lines and arrows show the sequence of the steps, and the relationships among them. These are known as flowchart symbols.
KEYWORDS
write: this command is use to show information in screen
read:this command is use to capture information, this will save in a variable
variable: it is the way in which they categorize the data that must be saved varies based on the program and language
IF-THEN
a condition is established with relational and logical operators if it is true one action occurs otherwise another
SWITCH
this command is based on a control variable and it is value causes a series of actions in each case
REPETITIVE CYCLES
For loop
in the for loop you can indicate the maximum number of iterations
in the while loop the idea is to repeat something if the condition is true
No hay comentarios:
Publicar un comentario