Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Sumario Elementos de un Programa Informatico

Rating
-
Sold
-
Pages
20
Uploaded on
18-01-2026
Written in
2025/2026

PUNTES DE RESCATE - UD1: ELEMENTOS DE UN PROGRAMA INFORMÁTICO

Institution
Course

Content preview

Untitled-1.md 2026-01-17




📚 APUNTES DE RESCATE - UD1: ELEMENTOS DE UN
PROGRAMA INFORMÁTICO
ATENCIÓN: Esto es lo mínimo que necesitas dominar para aprobar. Si no entiendes algo, repítelo hasta
que lo entiendas. No hay atajos.



1. 🔥 LO QUE CAE FIJO (Resumen Teórico Rápido)
📌 ALGORITMO

Secuencia ordenada de pasos para resolver un problema
Debe ser finito (termina en algún momento)
Debe ser preciso (mismos datos → mismo resultado)
Independiente del lenguaje de programación
Se representa con: pseudocódigo, diagramas de flujo o diagramas N-S

📌 DATOS Y TIPOS DE DATOS

Datos de Entrada: Información que introduces al programa (teclado, archivo, BD) Datos de Salida:
Resultados que genera el programa (pantalla, archivo)

Tipos Primitivos en Java:

Tipo Bytes Rango Ejemplo

byte 1 -128 a 127 byte edad = 25;

short 2 -32,768 a 32,767 short año = 2024;

int 4 ±2 mil millones int poblacion = 47000000;

long 8 ±9 trillones long distancia = 150000000L;

float 4 ±3.4×10³⁸ float precio = 19.99f;

double 8 ±1.7×10³⁰⁸ double pi = 3.14159;

char 2 1 carácter Unicode char letra = 'A';

boolean 1 true/false boolean activo = true;


📌 VARIABLES Y CONSTANTES

Variable: Espacio en memoria cuyo valor puede cambiar



int edad = 25; // Puede cambiar después
edad = 26;






,Untitled-1.md 2026-01-17


Constante: Valor que NO puede cambiar después de inicializarse



final double PI = 3.14159; // NO puede cambiar



Reglas de nomenclatura:

Comienzan con letra, _ o $
No pueden ser palabras reservadas (int, class, etc.)
Variables: lowerCamelCase → nombreCompleto, edadUsuario
Constantes: MAYUSCULAS_CON_GUIONES → NUMERO_MAXIMO, PI

📌 OPERADORES

Aritméticos:



+ suma
- resta
* multiplicación
/ división
% módulo (resto)



Relacionales (devuelven true o false):



> mayor que
< menor que
>= mayor o igual
<= menor o igual
== igual a
!= distinto de



Lógicos:



&& AND (Y) → Ambos deben ser verdaderos
|| OR (O) → Al menos uno debe ser verdadero
! NOT (NO) → Invierte el valor



Tabla de Verdad AND (&&):

A B A && B

V V V

V F F

F V F



, Untitled-1.md 2026-01-17


A B A && B

F F F

Tabla de Verdad OR (||):

A B A || B

V V V

V F V

F V V

F F F

Precedencia de operadores (de mayor a menor):

1. ( )
2. !, - (unario)
3. *, /, %
4. +, -
5. >, <, >=, <=
6. ==, !=
7. &&
8. ||

📌 ESTRUCTURAS DE CONTROL

🔹 SELECTIVAS (Si pasa esto... haz aquello)

IF Simple:



if (condicion) {
// Se ejecuta SI la condición es verdadera
}



IF-ELSE:



if (condicion) {
// Se ejecuta SI es verdadera
} else {
// Se ejecuta SI es falsa
}



IF-ELSE-IF:

Written for

Course

Document information

Uploaded on
January 18, 2026
Number of pages
20
Written in
2025/2026
Type
SUMMARY

Subjects

$4.09
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
jesús6

Also available in package deal

Get to know the seller

Seller avatar
jesús6 Universidad Nacional de Educación a Distancia
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
6 months
Number of followers
0
Documents
17
Last sold
5 months ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions