domingo, 6 de marzo de 2022

BASIC PROGRAMMING

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


WHILE LOOP

in the while loop the idea is to repeat something if the condition is true

DO WHILE LOOP

the do while loop checks the condition at the end of the loop. this means that the statements inside the loop body will be executed at least once even if the condition is never true



ARRAYS

are fuction to store more sata in a variable,only can save info to same info 








No hay comentarios:

Publicar un comentario

HTML(HyperText Markup Language)

W3C(WORLD WIDE WEB CONSORTIUM) The World Wide Web Consortium (W3C) is an international community where member organizations, a full-time sta...