Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Agosto 2017.
Diccionario
Regional Sucre
August 2017.
Dictionary
Regional Sucre
comunicarnos por medio de signos, ya sean palabras, sonidos o gestos. Refiriéndonos a los
aparatos, este sistema está organizado para que se entiendan entre sí y a su vez interprete
manera lógica y ordenada que permite solucionar un determinado problema. Se trata de una
serie de instrucciones o reglas establecidas que, por medio de una sucesión de pasos,
ALGORITMO: Es una serie de pasos organizados que describe el proceso que se debe
propio programa o eventos externos) que representan acciones que la máquina podrá
tomar.
la computadora, ya que, no está compuesto por ceros y unos. Para traducir las instrucciones
siguiente figura:
funcionamiento de un ensamblador
ensamblador, a un fichero objeto que contiene código máquina, ejecutable directamente por
el microprocesador
capacidad cognitiva humana, en lugar de la capacidad que se la ejecuta de las máquinas. ...
utilizando palabras
para realizar las diferentes tareas y actividades comunes, desde los pasos al levantarnos, asi
como ir de compras.
flujo se caracteriza por la forma detallada como representa de forma gráfica los pasos a
INICIO
Edad: Entero
Lea Edad
SI Edad>=18 entonces
FINSI
FIN
11-PSEUDOCODIGO es un lenguaje intermedio entre nuestro lenguaje y el lenguaje
Ejemplo
Programa: SumaProducto
Algoritmo:
leer NOTA1,NOTA2
Fin programa
Se deben identificar y recoger los datos requeridos para confirmar que el problema
identificado es real.
Para comprender un problema los mismos datos deben indicar quién, qué, cuándo, dónde y
por qué el problema es más grave, así como ciertas preguntas relacionadas con cuánto, de
qué tamaño, cuántas o cuántos. Es necesario construir un cuadro completo de la existencia
del problema. Es menester esclarecernos si los datos están claramente explicados, si los
mismos hechos tienen la misma interpretación para las partes, si los hechos son del pleno
conocimiento de todos los participantes en el proceso y si los hechos presentados son
verdaderamente relevantes para el proceso que se desarrolla.
c) Esta forma de presentación de los datos permite, especialmente a las personas que trabajan
en grupos, usar la información con mayor facilidad. Para presentación de los datos pueden
utilizarse las siguientes técnicas: Planilla de comprobación; histograma; gráfico de sectores;
gráfico de tiempo y otros.
Entre los instrumentos más importantes para la identificación de las causas potenciales se
encuentran:
• DIAGRAMA CAUSA – EFECTO que permite identificar y poner de manifiesto todas las
causas potenciales que están contribuyendo a la existencia del problema bajo consideración.
• ANÁLISIS CAMPO FUERZA para identificar aquellas fuerzas que ayudan o impiden
cerrar la brecha que existe entre donde se encuentra la organización y donde debe estar.
Hay que buscar todas las posibles ubicaciones al problema, determinar todas las aristas que
conforman el problema a fin de que el grupo lo analice en toda su dimensión y no sólo
centrarse en el análisis de sus causas.
Jugar con la ubicación del problema constituye una importante área de las habilidades
requeridas para resolver problemas. Los problemas pueden ubicarse en:
• La situación.
• El individuo.
• El grupo.
Al analizar un problema el grupo puede enfocarlo desde diferentes puntos de vista y listar
todas sus posibles ubicaciones.
Como la búsqueda de diferentes ubicaciones al problema puede reflejar una gran cantidad de
aristas sobre las que el grupo no tenga autoridad, es necesario utilizar filtros que garanticen
que los esfuerzos se orienten hacia lo que pueda ponerse en práctica.
Zona de Libertad
Una vez logrado este objetivo, resulta necesario hacer un replanteamiento del problema, o
sea, a todas las localizaciones que están ubicadas en la zona de libertad o actuación del grupo
plantearlas en términos situacionales y conductuales. Lo más importante es que hay que
lograr claridad sobre el problema que se quieren resolver, la definición debe contener el
objetivo deseado y este no debe sacrificarse por intentar localizar un problema de fácil
solución.
operaciones.
información con el fin de ser comunicada, y a efectos de ser entendida por el receptor,
convierte sus ideas en signos que sean fácilmente comprendidos por quienes reciben la
información
16-COMPILACION Y EJECUCION COMPILADOR:
máquina, pero también puede ser un código intermedio (bytecode), o simplemente texto.
que variará con su complejidad. Generalmente estas fases se agrupan en dos tareas: el
Código (en las que se busca obtener un código lo más eficiente posible).
Alternativamente, las fases descritas para las tareas de análisis y síntesis se pueden agrupar
símbolos. Esta parte suele ser independiente de la plataforma o sistema para el cual se vaya
a compilar, y está compuesta por las fases comprendidas entre el Análisis Léxico y la
plataforma, a partir de los resultados de la fase de análisis, realizada por el Front End.
EJECUCIÓN:
En otras palabras, la ejecución es el proceso mediante el cual una computadora lleva a cabo
Ejecutar un programa implica que éste estará en estado de ejecución y, por ende, en
que no son ejecutables. Por ejemplo, cuando se ejecuta una imagen JPG y se abre el
errores de programación.
cuales los problemas se generaban por los insectos que eran atraídos por las luces y
estropeaban el equipo. Si bien existen técnicas para la revisión sistemática del código
integrado, sigue siendo en buena medida una actividad manual, que desafía la paciencia, la
que agregan al código, para hacer más claro el entendimiento del proceso. A la
documentación para el usuario se le conoce como manual del usuario. En este manual no
existe información de tipo técnico, sino la descripción del funcionamiento del programa
desplegar la función requerida o las que venía desplegando hasta el momento en que se
dañó, en caso que haya sufrido alguna rotura que hizo que necesite del pertinente
mantenimiento y arreglo.
dominio (qué valores puede tomar), qué operaciones se le pueden aplicar y cómo es
existen muchos otros, y más adelante aprenderemos a crear nuestros propios tipos de datos.
Números enteros
El tipo int (del inglés integer, que significa «entero») permite representar números enteros.
Los valores que puede tomar un int son todos los números enteros: ... -3, -2, -1, 0, 1, 2, 3, ...
Los números enteros literales se escriben con un signo opcional seguido por una secuencia
de dígitos:
1570
+4591
-12
Números reales
El nombre float viene del término punto flotante, que es la manera en que el computador
Hay que tener mucho cuidado, porque los números reales no se pueden representar de
las operaciones entre valores float son aproximaciones. Esto puede conducir a resultados
algo sorpresivos:
0.9999999999999998
Los números reales literales se escriben separando la parte entera de la decimal con un
punto. Las partes entera y decimal pueden ser omitidas si alguna de ellas es cero:
>>> 881.9843000
881.9843
>>> -3.14159
-3.14159
>>> 1024.
1024.0
>>> .22
0.22
>>> -2.45E4
-24500.0
>>> 7e-2
0.07
>>> 6.02e23
6.02e+23
>>> 9.1094E-31
9.1094e-31
Los dos últimos valores del ejemplo son iguales, respectivamente,
del electrón).
Números complejos
Los números complejos tienen una parte real y una imaginaria. La parte imaginaria es
3 + 9j
-1.4 + 2.7j
Valores lógicos
Los valores lógicos True y False (verdadero y falso) son de tipo bool, que representa
valores lógicos.
El nombre bool viene del matemático George Boole, quien creó un sistema algebraico para
la lógica binaria. Por lo mismo, a True y False también se les llama valores booleanos. El
nombre no es muy intuitivo, pero es el que se usa en informática, así que hay que
conocerlo.
Texto
A los valores que representan texto se les llama strings, y tienen el tipo str.
Los strings literales pueden ser representados con texto entre comillas simples o comillas
dobles:
"ejemplo 1"
'ejemplo 2'
La ventaja de tener dos tipos de comillas es que se puede usar uno de ellos cuando el otro
"Let's go!"
Es importante entender que los strings no son lo mismo que los valores que en él pueden
estar representados:
>>> 5 == '5'
False
False
Los strings que difieren en mayúsculas y minúsculas, o en espacios también son distintos:
False
False
Nulo
Existe un valor llamado None (en inglés, «ninguno») que es utilizado para representar
casos en que ningún valor es válido, o para indicar que una variable todavía no tiene un
El valor None tiene su propio tipo, llamado NoneType, que es diferente al de todos los
demás valores.
21-EXPRESIONES Una expresión es una secuencia de uno o más operandos y cero o más
operadores que se pueden evaluar como un valor, objeto, método o espacio de nombres
único. Las expresiones pueden constar de un valor literal, una invocación de método, un
diferente, los valores de una o mas variables y/o constantes. Es decir, los
Otra definición es: un operador es el símbolo que determina el tipo de operación o relación
Se dividen en:
Aritméticos
Relaciónales
Lógicos
Son elementos que relacionan de forma diferente, los valores de una o mas variables y/o
Operadores Aritméticos
Los operadores aritméticos pueden ser utilizados con tipos de datos enteros o reales. Si
ambos son enteros, el resultado es entero; si alguno de ellos es real, el resultado es real.
Operadores Aritméticos
+ Suma
- Resta
* Multiplicación
/ División
Ejemplos:
Expresión Resultado
7/2 3.5
12 mod 7 5
4+2*5 14
Todas las expresiones entre paréntesis se evalúan primero. Las expresiones con paréntesis
1. ^ Exponenciación
3. +, - Suma y resta.
Los operadores en una misma expresión con igual nivel de prioridad se evalúan de
izquierda a derecha.
Ejemplos:
4 + 2 * 5 = 14 23 * 2 / 5 = 9.2
Se utilizan para establecer una relación entre dos valores. Luego compara estos valores
Los operadores relacionales comparan valores del mismo tipo (numéricos o cadenas). Estos
= Igual
Ejemplos:
Si a = 10, b = 20, c = 30
a+b>c Falso
a-b<c Verdadero
a-b=c Falso
a*b<>c Verdadero
Ejemplos no lógicos:
a<b<c
10 < 20 < 30
T > 5 < 30
Operadores Lógicos
Estos operadores se utilizan para establecer relaciones entre valores lógicos. Estos valores
And Y
Or O
Not Negación
Ejemplo:
Operando Resultado
T F
F T
T AND T T
T F F
F T F
F F F
Operador Or Operador Or
T Or T T
T F T
F T T
F F F
1. Not
2. And
3. Or
1. ( )
2. ^
3. *, /, Mod, Not
4. +, -, And
Ejemplos:
Sea: a = 10 b = 12 c = 13 d =10
23-IDENTIFICADORES VARIABLES Y CONSTANTES Identificador.
para identificar las entidades del programa (clases, funciones, variables, tipos compuestos)
Los identificadores pueden ser combinaciones de letras y números. Cada lenguaje tiene sus
propias reglas que definen como pueden estar construidos. Cuando un identificador se
representa en el programa. Nombrar las entidades hace posible referirse a las mismas, lo
El primer carácter debe ser una letra o el guión bajo. El Estándar establece que los
Este tipo de nombres se reserva para los compiladores y las Librerías Estándar.
Tampoco se permite la utilización de nombres que contengan dos guiones bajos
seguidos.
El estándar ANSI establece que como mínimo serán significativos los 31 primeros
caracteres, aunque pueden ser más, según la implementación. Es decir, para que un
variables empiezan con una letra minúscula y los nombres de las clases empiezan con
permite utilizar en sus programas Java varios alfabetos como el japonés, el griego, el
ruso o el hebreo. Esto es importante para que los programadores puedan escribir
No puede ser el mismo que una palabra clave o el nombre de un valor booleano (true
o false).
No deben tener el mismo nombre que otras variables cuyas declaraciones aparezcan
están compuestos por más de una palabra se colocan juntas y el resto comenzando
Camel Case.
se debe a que las mayúsculas a lo largo de una palabra en CamelCase se asemejan a las
Ejemplo: EjemploDeUpperCamelCase.
Constantes y variables
categoría.
Las Variables son aquéllas que pueden modificar su valor durante la ejecución de un
programa (idem).
Ejemplos:
Constantes Variables
36
450.35
0.58
Numéricos
‘A’
A
‘Juan’
Nom
‘La Paz’
Cadena Edad
Falso Ciudad
Verdadero Estatura
Lógicos
relacionen mediante entradas y salidas de información. Este diseño consiste en una serie de
descomposiciones sucesivas del problema inicial, que recibe el refinamiento progresivo del
Las diferentes partes del problema pueden ser programadas de modo independiente e
El programa final queda estructurado en forma de bloque o módulos lo que hace más
Bottom Up
difícil llegar a integrar los subsistemas al grado tal de que el desempeño global, sea fluido.
Los problemas de integración entre los subsistemas son sumamente costosos y muchos de
ellos no se solucionan hasta que la programación alcanza la fecha límite para la integración
total del sistema. En esta fecha, ya se cuenta con muy poco tiempo, presupuesto o paciencia
de los usuarios, como para corregir aquellas delicadas interfaces, que en un principio, se
ignoran. Aunque cada subsistema parece ofrecer lo que se requiere, cuando se contempla al
sistema como una entidad global, adolece de ciertas limitaciones por haber tomado un
enfoque ascendente.
Uno de ellos es la duplicación de esfuerzos para acceder el software y mas aún al introducir
los datos.
Un tercero y tal vez el mas serio inconveniente delenfoque ascendente, es que los objetivos
Entonces
…), en cada uno de ellos se fueron presentando problemas a los cuales se le dieron una
Cuando la empresa decidió integrar un sistema global para suplir todas las necesidades de
todos los departamentos se dio cuenta que cada una de las soluciones presentadas no era
compatible la una con la otra, no representaba una globalidad, característica principal de los
sistemas.
Como no hubo un previo análisis, diseño de una solución a nivel global en todos sus
algunos ejemplos conocidos por todos son el teclado, el mouse (también llamado ratón), el
usuario ...
Un dispositivo de salida, por lo tanto, es aquél que emite una señal con información. En
una computadora y produce una salida impresa en papel), el monitor (exhibe los datos en la
pantalla), los auriculares (emite sonidos para que sean escuchados por una persona) y
existido desde siempre en las computadoras sin importar su modelo y es por eso que es
28-UNIDAD DE CONTROL
La unidad de control (UC), en inglés: control unit (CU), es uno de los tres bloques
funcionales principales en los que se divide una unidad central de procesamiento (CPU).
Existen dos tipos de unidades de control: las cableadas, usadas generalmente en máquinas
conocida como ALU (siglas en inglés de arithmetic logic unit), es un circuito digital que
lógicas (si, y, o, no), entre valores (generalmente uno o dos) de los argumentos.
Muchos tipos de circuitos electrónicos necesitan realizar algún tipo de operación aritmética,
así que incluso el circuito dentro de un reloj digital tendrá una ALU minúscula que se
de la alarma.
Por mucho, los circuitos electrónicos más complejos son los que están construidos dentro
de los chips de microprocesadores modernos. Por lo tanto, estos procesadores tienen dentro
los mainframes) puede tener múltiples núcleos, cada núcleo con múltiples unidades de
lógica: unidades de procesamiento gráfico como las que están en las GPU
señales como los que se encuentran en tarjetas de sonido, lectoras de CD y los televisores
de alta definición. Todos éstos tienen en su interior varias ALU potentes y complejas.
Esta unidad realiza cálculos (suma, resta, multiplicación y división) y operaciones lógicas
operaciones aritméticas y lógicas, la UAL mueve datos entre ella y el almacenamiento. Los
datos usados en el procesamiento se transfieren de su posición en el almacenamiento a la
UAL.
Los datos se manipulan de acuerdo con las instrucciones del programa y regresan al
almacenamiento, los datos deben transferirse a la UAL. Para terminar una operación puede
suceder que los datos pasen de la UAL al área de almacenamiento varias veces.
se almacenan temporalmente tanto los datos como los programas que la unidad central de
función, la MP debe ser inseparable del microprocesador o CPU, con quien se comunica a
través del bus de datos y el bus de direcciones. El ancho del bus determina la capacidad que
ROM es una sigla en inglés que refiere al término "Read Only Memory" o "Memoria de
información que puede ser leída pero sobre la cual no se puede destruir. A diferencia de una
memoria RAM, aquellos datos contenidos en una ROM no son destruidos ni perdidos en
Con frecuencia, las memorias ROM o de sólo lectura se usaron como principal medio de
almacenamiento de datos en los ordenadores. Por ser una memoria que protege los datos
Si bien durante las primeras décadas de los ordenadores el sistema operativo solía
más memoria o una actualización sobre los programas o el sistema, era preciso a menudo
Hoy por hoy las computadoras pueden conservar algunos de sus programas en ROM, pero
dispositivos PDA.
basados en la memoria ROM, como la Nintendo 64, Super Nintendo o Game Boy.
Por la velocidad de uso, la información contenida en una memoria ROM suele pasarse a la
La memoria RAM es conocida como memoria volátil lo cual quiere decir que los datos no
se guardan de manera permanente, es por ello, que cuando deja de existir una fuente de
Los módulos de RAM, conocidos como memoria RAM son integrantes del hardware que
contiene circuitos integrados que se unen al circuito impreso, estos módulos se instalan en
Existen 2 tipos básicos de memoria RAM; RAM dinámica (DRAM) y RAM estática
(SRAM), ambas utilizan diferentes tecnologías para almacenar los datos. La RAM
dinámica (DRAM) necesita ser refrescada 100 de veces por segundos, mientras que la
RAM estática (SRAM) no necesita ser refrescada tan frecuentemente lo que la hace más
el corte de la energía eléctrica. Para más información puede ver nuestro artículo
de memoria ROM.
DDR conocida como SDRAM (Synchronous Dram) es un tipo de memoria RAM, dinámica
que es casi un 20% más rápida que la RAM EDO. Esta memoria entrelaza dos o más
matrices de memoria interna de manera que mientras se accede a una matriz, la próxima se
está preparando para acceder, dicha memoria permite leer y escribir datos a 2 veces la
velocidad buz.
DDR2 son unas mejoras de la memoria DDR que permite que los búferes de entrada –
salida funcionan al doble de la frecuencia del núcleo, permitiendo que durante cada ciclo de
reloj se realizan 4 transferencias. Una memoria DDR a 200 MHZ reales entregaba 400
MHZ nominales, la DDR2 con esos mismos 200 MHZ entrega 800 MHZ NOMINALES.
DDR3 puede ser 2 veces más rápida que la memoria DRR2, la DDR3 teóricamente podía
transferir datos a una tasa de reloj efectiva de 800-2600 MHZ, comparado con el rango de
parte de memoria RAM estática de alta velocidad (SRAM) más que la lenta y barata RAM
dinámica (DRAM) usada como memoria principal. La memoria caché es efectiva debido a
que los programas acceden una y otra vez a los mismos datos e instrucciones.
Dentro de cada una de estas memorias pueden existir distintos tipos de capacidad de
algún programa en el ordenador ya que la información que necesita dicho programa para
el programa se traslada al procesador todas las instrucciones que necesitan ser ejecutadas
realizando diferentes transmisiones de datos según sea necesario, en consecuencia, la
La memoria RAM almacena dicha información y le envía al procesador los datos que
necesitan ser procesados, por lo tanto, mientras la memoria posea mayor velocidad de
Es donde se almacenan todos los programas o datos que el usuario desee. Los dispositivos
DICTIONARY
signs, words, sounds or gestures. Referring to the apparatus, this system is organized so that
they understand each other and in turn interpret the instructions to be executed.
2-ALGORITHMS: It is called an algorithm to a finite group of operations organized in a
logical and orderly way that allows to solve a certain problem. It is a series of instructions
solution.
ALGORITHM: It is a series of organized steps that describes the process that must be
possible changes of flow caused by the program itself or external events) that represent
4-LOW-LEVEL LANGUAGE -
Low-level languages, also called assembler languages, allow the programmer to write
program instructions using English abbreviations, also called mnemonic words, such as
ADD, DIV, SUB, etc. A program written in an assembly language has the disadvantage that
it is not understandable for the computer, since, it is not composed by zeros and ones. To
following figure:
Operation of an assembler
5-Assembler: The term assembler refers to a type of software that is responsible for
ability, rather than the ability to execute it on machines. ... They are classified as procedural
7-QUALITATIVE ALGORITHMS: These are those in which the steps are described using
words
DAILY ALGORITHM: It is the series of steps that we carry out in our daily life to carry
out the different tasks and common activities, from the steps when getting up, as well as
shopping.
operations that an algorithm makes also called flow diagram. The flow diagram is
characterized by the detailed form as graphically represents the steps to follow to find the
START
Age: Whole
Read Age
FINSI
END
programming language, its main characteristic is to represent the solution in a more detailed
• Method that facilitates the programming and solution to the algorithm of the program.
Example
• Perform the pseudocode that allows the user to enter two notes on the keyboard,
Program: SumaProducto
Algorithm:
End program
12-DEFINITION OF THE PROBLEM: The Real Academia Española (rae) defines
solution, set of facts or circumstances that make difficult the attainment of some purpose,
methods.
After identifying, selecting and defining the problem, the group identifies the main cause
(s) of the problem. In this phase the objective is to analyze the problem and divide it into
Should be dedicated to reaching an agreement on the definition and analysis of the same. A
good definition and analysis should make the rest of the phases of the process develop
specific method to create a mathematical model adjusted to a specific problem to solve it.
order to be communicated, and in order to be understood by the receiver, applying the rules
of a predetermined code. That is to say that in the codification the emitter turns his ideas
into signs that are easily understood by those who receive the information
16-COMPILATION AND EXECUTION COMPILER:
language into another programming language, generating an equivalent program that the
machine will be able to interpret. Usually the second language is machine language, but it
can also be an intermediate code (bytecode), or simply text. This translation process is
known as compilation.
The construction of a compiler involves the division of the process into a series of phases
that will vary with its complexity. Generally, these phases are grouped into two tasks: the
analysis of the source program and the synthesis of the object program • Analysis: This is
the verification of the correction of the source program, and includes the phases
grammatical phrases) and Semantic analysis (checking the semantic validity of sentences
-Synthesis: Its objective is the generation of the output expressed in the object language and
intermediate or object code) and Code Optimization (in Which are looking for a code as
efficient as possible).
Alternatively, the phases described for the analysis and synthesis tasks can be grouped in
Front-end and Back-end: • Front-end: it is the part that analyzes the source code, checks its
validity, generates the derivation tree and fills the Values of the symbol table. This part is
usually independent of the platform or system for which it will be compiled, and is
composed of the phases between Lexical Analysis and Intermediate Code Generation.
• Back-end: the part that generates the machine code, specific to a platform, from the results
EXECUTION:
In computing, run is the action of starting the load of a program or any executable file.
In other words, execution is the process by which a computer carries out the instructions of
a computer program.
You can run compiled programs (for example, Windows, .EXE) or interpreted programs
Running a program implies that it will be in a state of execution and, therefore, in memory,
until it is finished.
Some bibliographies extend the definition of execution and include loading files that are
not executable. For example, when you run a JPG image and open the program to display
it, or when you run an MP3 sound and the audio player opens. Technically speaking, what
is actually running is the program that is responsible for interpreting the non-executable
file.
In Windows, most programs that are running are listed in Task Manager, from where they
can be finalized.
the elimination of bugs (bugs), way in which is known informally to the errors of
programming.
The term bug comes from the era of thermionic valve computers, in which problems were
generated by insects that were attracted to the lights and damaged the equipment. Although
there are techniques for the systematic revision of the source code and computational
means for the detection of errors (debuggers) and facilities integrated in the lower CASE
manual activity, Which challenges the patience, imagination and intuition of programmers.
Often it is necessary to include auxiliary instructions in the source code that allow
monitoring of the execution of the program, presenting variable values and memory
addresses and slowing the data output ("debug mode"). Within a formal process of quality
person is used by many others. For this reason the documentation serves to help understand
The documentation must be presented in three forms, external, internal and to the end user.
code, to clarify the understanding of the process. The documentation for the user is known
as the user manual. In this manual there is no technical information, but the description of
proper functioning
In general terms for maintenance is designated the set of actions that aim to maintain an
article or restore it to a state in which the same can deploy the required function or those
that had been deployed until the moment it was damaged, Suffered a rupture that caused
DATA TYPES A data type is the property of a value that determines its domain (what
values it can take), what operations can be applied to it and how it is represented internally
by the computer.
Next we will review the elementary data types of Python. In addition to these, there are
many others, and later learn to create our own data types.
Integer numbers
The integer type (integer, which means "integer") allows you to represent integers.
The values that can take an int are all integers: ... -3, -2, -1, 0, 1, 2, 3, ...
The literal integers are written with an optional sign followed by a sequence of digits:
1570
+4591
-12
Real numbers
The name float comes from the term floating point, which is the way the computer
You have to be very careful, because real numbers can not be accurately represented on a
computer. For example, the decimal number 0.7 is represented internally by the computer
using the approximation 0.69999999999999996. All operations between float values are
0.9999999999999998
The literal real numbers are written by separating the integer part of the decimal with a dot.
The integer and decimal parts can be omitted if any of them is zero:
881.9843000
881.9843
>>> -3.14159
-3.14159
>>> 1024.
1024.0
>>> .22
0.22
Another representation is scientific notation, which writes a factor and a power of ten
>>> -2.45E4
-24500.0
>>> 7e-2
0.07
>>> 6.02e23
6.02e + 23
>>> 9.1094E-31
9.1094e-31
The last two values of the example are equal, respectively, to 6.02 × 10236.02 × 1023 (the
Avogadro constant) and 9.1094 × 10-319.1094 × 10-31 (the mass of the electron).
Complex numbers
Complex numbers have a real part and an imaginary part. The imaginary part is denoted by
3 + 9j
-1.4 + 2.7j
Logical values
The logical values True and False (true and false) are of type bool, which represents logical
values.
The name bool comes from the mathematician George Boole, who created an algebraic
system for binary logic. For this reason, True and False are also called Boolean values. The
name is not very intuitive, but it is the one used in computing, so you have to know it.
Text
Values representing text are called strings, and have the type str.
Literal strings can be represented with text in single quotes or double quotation marks:
"Example 1"
'Example 2'
The advantage of having two types of quotes is that you can use one of them when the other
It is important to understand that the strings are not the same as the values that can be
represented in it:
(I.e.
False
False
Strings that differ in uppercase and lowercase, or in spaces are also different:
False
False
Null
There is a value called None, which is used to represent cases where no value is valid, or to
indicate that a variable does not yet have a value that makes sense.
The value None has its own type, called NoneType, which is different from all other values.
21-EXPRESSIONS An expression is a sequence of one or more operands and zero or more
Expressions can consist of a literal value, a method invocation, an operator and its
different way, the values of one or more variables and / or constants. That is, operators
Another definition is: an operator is the symbol that determines the type of operation or
Arithmetic
Relationship
Logical
They are elements that relate in a different way, the values of one or more variables and / or
Arithmetic operators can be used with integer or real data types. If both are integers, the
Arithmetic Operators
+ Sum
Remains
* Multiplication
/ Division
Expression Result
7/2 3.5
12 mod 7 5
4 + 2 * 5 14
All expressions in parentheses are evaluated first. Expressions with nested parentheses are
evaluated from inside to outside, the innermost parentheses are evaluated first.
Within the same expression the operators are evaluated in the following order:
1. ^ Exponenciation
Operators in the same expression with the same priority level are evaluated from left to
right.
Examples:
4 + 2 * 5 = 14 23 * 2/5 = 9.2
3 + 5 * (10 - (2 + 4)) = 23 2.1 * (1.5 + 12.3) = 2.1 * 13.8 = 28.98
Relational Operators
They are used to establish a relationship between two values. Then it compares these values
with each other and this comparison produces a result of certainty or falsehood (true or
false).
Relational operators compare values of the same type (numeric or strings). These have the
• Greater than
• <Less than
• <> Different
Equal
Examples:
If a = 10, b = 20, c = 30
A + b> c False
A - b <c True
A - b = c False
A * b <> c True
Non-logical examples:
A <b <c
10 <20 <30
T> 5 <30
Logical operators
These operators are used to establish relationships between logical values. These values can
And and
Gold
Not Denial
Example:
Operating Result
TF
FT
T AND T T
TFF
FTF
FFF
Operator Or Operator Or
T Or T T
TFT
FTT
FFF
1. Not
2. And
3. Or
1. ()
2. ^
3. *, /, Mod, Not
4. +, -, And
Examples:
Sea: a = 10 b = 12 c = 13 d = 10
An identifier is a set of alphanumeric characters of any length that serves to identify the
combinations of letters and numbers. Each language has its own rules that define how they
can be constructed. When an identifier is associated with a particular entity, then it is the
"name" of that entity, and hence represents it in the program. Naming the entities makes it
possible to refer to them, which is essential for any kind of symbolic processing.
• The first character must be a letter or the underscore. The Standard states that identifiers
beginning with a low and upper case script should not be used. This type of names is
reserved for compilers and Standard Libraries. It is also not permitted to use names
be more, depending on the implementation. That is, for a compiler to adhere to the ANSI
• In a program we do not refer to the value of a variable by its identifier, which is the name
given to the variable. By convention, in Java, variable names begin with a lowercase letter
and class names begin with a capital letter. A variable identifier, in Java, has to meet:
coding system that supports written text in different human languages. Unicode allows the
encoding of 34,168 characters. This allows you to use in your Java programs several
programmers can write code in their native language. Therefore we can use the ñ as part of
• Can not be the same as a keyword or the name of a Boolean value (true or false).
• They should not have the same name as other variables whose declarations appear in the
• By convention, variable names begin with a lowercase letter and when they are composed
of more than one word they are placed together and the rest starting with uppercase letters.
CamelCase is a style of writing that applies to sentences or compound words. The name is
because the capital letters along a word in CamelCase resemble the humps of a camel. The
name CamelCase could be translated as uppercase / lowercase Camel. The term case
translates as "typographic box", which in turn implies whether a letter is capital or small
and has its origin in the arrangement of movable types in lockers or boxes.
:UpperCamelCase example.
LowerCamelCase, just like the previous one with the exception that the first letter is lower
A constant is one that does not change value during program execution (or checking for an
Variables are those that can modify their value during the execution of a program (idem).
Their representation is given through letters and symbols generally numeric to which they
Examples:
Variable Constants
Numeric 36
450.35
0.58 A
Nom
Age
City
Height
Chain 'A'
'Juan'
'Peace'
Logical False
True
and consists of establishing a series of levels of greater to lesser complexity (top-down) that
give solution to the problem. It consists in making a relationship between the stages of the
structuring so that a hierarchical stage and its immediate lower are related through inputs
and outputs of information. This design consists of a series of successive decompositions of
the initial problem, which receives the progressive refinement of the repertoire of
The use of the Top-Down design technique has the following basic objectives:
• The different parts of the problem can be programmed independently and even by
different people.
• The final program is structured in the form of block or modules which makes reading and
maintenance easier.
Bottom Up
The upward design refers to the identification of those processes that need to be
computerized as they appear, their analysis as a system and their coding, or the acquisition
Problems of integration between subsystems are extremely costly and many of them are not
solved until programming reaches the deadline for full integration of the system. At this
date, there is already very little time, budget or patience of users, as to correct those delicate
interfaces, which at first, are ignored. Although each subsystem seems to provide what is
required, when the system is viewed as a global entity, it suffers from certain limitations
One of them is the duplication of efforts to access the software and even more when
Another is that many valuable data are introduced into the system.
A third and perhaps the most serious drawback of the bottom-up approach is that the
overall objectives of the organization were not considered and therefore not met.
So
The difference between these two programming techniques is based on the result that they
in each of them were presented problems that were given a solution based on a Bottom Up:
creating programs that satisfied Just the problem that was presented.
When the company decided to integrate a global system to meet all the needs of all
departments realized that each of the solutions presented was not compatible with one
another, it did not represent a globality, the main feature of the systems.
As there was no previous analysis, design of a solution at a global level in all departments,
fundamental characteristics of the systems; The company was unable to meet its need
globally.
The creation of algorithms is based on the descending technique, which provides the ideal
25-INPUT DEVICES Input devices are those equipment and components that allow you to
enter information into the processing unit; Some examples known to all are the keyboard,
the mouse (also called the mouse), the scanner, the webcam, the stylus and the microphone;
26-OUTPUT DEVICES Output devices are those that receive information from the
computer, its function is eminently receptive and therefore are unable to send information.
An output device, therefore, is one that emits a signal with information. In this regard we
can mention the printer (which receives information from a computer and produces a
printed output on paper), the monitor (displays the data on the screen), the headphones
(makes sounds to be heard by a person) and the speaker (Plays sounds to the environment).
(Central Processing Unit in Spanish) is the central part of every computer since it is the one
that fulfills the task of processing all functions as well as storage of information . It is an
electronic circuit that has always existed in computers regardless of their model and that is
28-CONTROL UNIT
The control unit (CU) is one of the three main functional blocks in which a central
processing unit (CPU) is divided. The other two blocks are the process unit and the input /
output unit.
Its function is to search the instructions in the main memory, to decode them
(interpretation) and to execute them, using for this the process unit.
There are two types of control units: wiring, usually used in simple machines, and
microprogrammed, typical of more complex machines. In the first case, the main
components are the sequential logic circuit, the state control circuit, the combinational logic
circuit and the control signal recognition emission circuit. In the second case, the
In computing, the arithmetic logic unit, or arithmetic logic unit, is a digital circuit that
logical operations ( If, and, or, not), between values (usually one or two) of the arguments.
Many types of electronic circuits need to perform some sort of arithmetic operation, so
even the circuit within a digital clock will have a tiny ALU that keeps adding 1 to the
current time, and keeps checking if it should activate the alarm sound.
By far the most complex electronic circuits are those built into modern microprocessor
chips. Therefore, these processors have within them a very complex and powerful ALU. In
fact, a modern microprocessor (and mainframes) can have multiple cores, each core with
Many other circuits can contain a logical arithmetic unit inside: graphic processing units
such as those in modern GPUs, FPU like the old mathematical coprocessor 80387, and
digital signal processors such as those found on sound cards, readers CD and HDTVs. All
This unit performs calculations (addition, subtraction, multiplication and division) and
It has a very important register known as: Accumulator ACC When performing arithmetic
and logical operations, the UAL moves data between it and storage. The data used in the
processing can not be performed in the storage area, the data must be transferred to the
UAL. To terminate an operation it may happen that the data passes from the UAL to the
memory or internal memory is the memory of the computer where the data and programs
that the central processing unit (CPU) is temporarily storing or storing Process at a certain
time. By its function, the MP must be inseparable from the microprocessor or CPU, with
whom it communicates through the data bus and the address bus. The width of the bus
31-MEMORY ROM: Read-only memory integrated circuit that stores instructions and data
permanently. A ROM is that storage memory that allows only the reading of the
information and not its destruction, regardless of the presence or not of an energy source
ROM stands for "Read Only Memory". It is a semiconductor memory that facilitates the
conservation of information that can be read but over which it can not be destroyed. Unlike
a RAM, those data contained in a ROM are not destroyed or lost in case of interruption of
the information stream and for that reason it is called "non-volatile memory".
Frequently, ROM or read-only memory were used as the primary means of data storage on
computers. ROMs were used to store system configuration information, boot or boot
programs, hardware, and other programs that do not require constant updating, because it is
Although during the first decades of computers the operating system used to be stored in
Previously, there were no efficient alternatives to ROM, and if more memory or an update
was required on the programs or the system, it was often necessary to replace the old
Nowadays computers can keep some of their programs in ROM, but flash memory is much
In addition to computers, video game consoles still use ROM-based programs such as the
Due to the speed of use, the information contained in a ROM is usually passed to RAM
RAM MEMORY: Main memory of the computer, where programs and data reside, on
which read and write operations can be performed. RAM is the main memory of a device
where programs and informational data are stored. The acronym RAM means "Random
The RAM memory is known as volatile memory which means that the data is not
permanently stored, that is why, when a power source in the device ceases to exist, the
information is lost. Also, RAM memory can be rewritten and read constantly.
The RAM modules, known as RAM are part of the hardware that contains integrated
circuits that are attached to the printed circuit, these modules are installed on the
motherboard of a computer. RAM memories are part of computers, video game consoles,
There are 2 basic types of RAM; Dynamic RAM (DRAM) and Static RAM (SRAM), both
of which use different technologies to store data. Dynamic RAM (DRAM) needs to be
refreshed 100 times per second, whereas static RAM (SRAM) does not need to be cooled
so frequently which makes it faster but also more expensive than dynamic RAM.
In counterpart of the RAM memory ROM is a non-volatile memory since the information
contained in it is not erasable when turning off the computer or with the power cut off. For
Types of RAM
DDR known as SDRAM (Synchronous Dram) is a type of RAM, dynamic that is almost
20% faster than the EDO RAM. This memory interleaves two or more internal memory
arrays so that while accessing an array, the next is preparing to access, said memory allows
DDR2 are DDR memory enhancements that allow input-output buffers to operate at twice
the kernel frequency, allowing four transfers to be made during each clock cycle. A real
200 MHz DDR memory delivered 400 nominal MHZ, the DDR2 with those same 200
data at an effective clock rate of 800-2600 MHZ, compared to the DDR2 range of 400-
Cache memory or RAM cache A cache is a special high-speed storage system, it can be
either a reserved area of main memory or a separate high-speed storage device. A cache is a
part of high-speed static RAM (SRAM) rather than the slow and inexpensive dynamic
RAM (DRAM) used as main memory. The cache memory is effective because the
programs access again and again to the same data and instructions.
Within each of these memories may exist different types of storage capacity, that is, they
The RAM memory is used to improve the speed of response when using any program in the
computer since the information needed by said program to make it work is stored in the
RAM, in this way, when running the program is transferred to the processor All
consequently the RAM and the processor interact with each other by exchanging the
requested data.
The RAM stores such information and sends the data to the processor that needs to be
processed, so as long as the memory has higher transmission speed and greater storage
capacity, the user can use more programs at the same time and more quickly.
33-EXTERNAL AUXILIARY MEMORY: Secondary memory. The secondary memory,
storage, is the set of data storage devices and supports that make up the computer's memory
It is where all the programs or data that the user wants are stored. The most commonly used
storage devices or auxiliary memories are: magnetic tapes and magnetic disks.