Informatica
-
Upload
itzel-may-diego -
Category
Documents
-
view
6 -
download
0
description
Transcript of Informatica
![Page 1: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/1.jpg)
Instrucciones para cada uno de los siguientes problemas, elabora el algoritmo y diagrama de flujo que permita obtener:
1.- la suma de 2 números:
Entrada
Escribir 2 números x,y
Proceso
P=x+y
Salida
P
1.- Escribir “programa que suma 2 numeros”
2.-Escribir “dame un número”
3.- leer x
4.-Escribir “dame otro unmero”
5.- Leer y
6.- Realizar P=x+y
7.- Escribir “el resultado es”
8.- escribir P
9.- fin
![Page 2: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/2.jpg)
Inicio
“Programa que suma dos
números”
“Dame un numero”
X
“Dame otro numero”
y
P=X+Y
“El resultado es”
P
FINNN
![Page 3: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/3.jpg)
2.-El área de un cuadrado
Entrada
El lado del cuadrado L
Proceso A= L*L
Salida A
1.- Inicio
2.- Escribir “Cual es el lado del cuadrado”
3.- Leer L
4.- Realizar A=L*L
5.- Escribir “ El resultado del área del cuarado es”
6.- Escribir A
7.- Fin
![Page 4: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/4.jpg)
Inicio
Escribir “Cuales el lado del cuadrado”
L
A=L*L
“El resultado del área del
cuadrado es”
A
Fin
![Page 5: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/5.jpg)
3.-El área del circulo
1.-Inicio}
2.-Escribir “Dame un lado”
3.-Leer m
4.- Escribir “Dame otro lado”
5.-Leer D
6.-Realizar H= M*D
7.-Escribir “El área de un circulo es”
8.-Escribir H
9.- Fin
![Page 6: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/6.jpg)
Inicio
“dame un lado”
M
“Dame otro lado
D
H=m*D
“El resultado es”
H
fin
![Page 7: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/7.jpg)
4.-EL área de un rectángulo
Entrada base B, altura A
Proceso
J=B*H/2
salida
J
1.-Escribir “La base es”
2.-Leer B
3.-Escribir La altura es”
4.-Leer H
5.-Realizar J=B*H/2
6.- Escribir “El resultado es”
7.- Escribir J
8.-Fin
![Page 8: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/8.jpg)
inicio
“La base es”
B
“La altura es”
A
J=B*A/2
“El resultado es”
J
fin
![Page 9: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/9.jpg)
5.-Juan quiere vender un terreno que mide MEDIDAX metros de frente y MEDIDAY metros de fondo precio por metro cuadrado en la zona en la que esta el terreno es de PRECIOZ obtener el PRECIO del terreno
Entrada
Medida de los lados MEDIDAY y MEDIDAX precio por metro PRECIOZ
Proceso
PRECIO =MEDIDAX*MEDIDAY*PRECIOZ
SALIDA PRECIO
1.-Inicio
2.-Escribir”Dame la medida del primer lado”
3.-Leer MEDIDAX
4.- Escribir “Dame la media del segundo lado”
5.-Leer MEDIDAY
6.-Escribir “Dame el precio por metro”
7.-Leer PRECIOZ
8.-Realizar PRECIO=MEDIDAX*MEDIDAY*PRECIOZ
9.-Escribir “El precio del terreno es”
10.-Escribir PRECIO
11.- Fin
![Page 10: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/10.jpg)
Inicio
“Dame la medida del primer lado”
MEDIDAX
“Dame la medida del
segundo lado”
MEDIDAY
“Dame el precio por
metro”
PRECIOZ
PRECIO=MEDIDAX*EDIDAY*PRECIOZ
“El precio del terreno es”
PRECIO
Fin
![Page 11: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/11.jpg)
6.- El área del triangulo
Entrada
Medida de la base MB
Altura del triangulo AT
Proceso
A=MB*AT/2
Salida A
1.-Inicio
2.- Escribir “Cual es la medida de la base”
3.-Leer MB
4.-Escribir “Cual es la altura”
5.- Leer AT
6.-Realizar A=MB*AT/2
7.-Escribir “El área del triangulo es”
8.-Escribir A
9.-Fin
![Page 12: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/12.jpg)
Inicio
“Cual es la medida de la
base”
MB
“Cual es la altura”
AT
A=MB*AT/2
“El área del triangulo es”
A
Fin
![Page 13: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/13.jpg)
7.-El perímetro de un polígono regular, dado la medida de un lado y el numero de lados del polígono
Entrada Numeros de lados NL
Medida del lado ML
Proceso
MN=NL*ML
Salida MN
1.-Inicio
2.-Escribir “Dame el numero e lados”
3.-Leer NL
4.-Escribir “Dame la medida de un lado”
5.-Leer ML
6.-Realizar MN=NL*ML
7.-Escribir “El perímetro es”
8.-Escribir MN
9.-Fin
![Page 14: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/14.jpg)
Inicio
“Dame el numero de
lados”
NL
“Dame la medida de un
lado”
ML
MN
Fin
![Page 15: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/15.jpg)
8.-Dados 2 angulos, sumarlos e indicar si son complementarios o suplementarios
Entrada Angulo cm
Angulo 5j
Proceso k=cm+5j
Salida k
1.- Inicio
2.-Escribir “Dame un angulo complementario
3.- Leer cm
4.-Escribir “Dame otro angulo suplementario”
5.-Leer 5j
6.- Realizar k=cm+5j
7.-Escribir “La suma de los angulos es”
8.- Escribir k
9.- Fin
![Page 16: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/16.jpg)
Inicio
“Dame un angulo complementario”
cm
“Dame otro angulo
suplementario”
5j
K=cm+sj
“la suma de los angulos es”
k
Fin
![Page 17: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/17.jpg)
9.-El promedio semestral de un alumno en inforatica
Entrada la primera calificacion j
La segunda calificacion A, la tercera calificación E
Proceso
S=J+A+E
Salida S
1 Inicio
2.-Escribir “Dame la primera calificación”
3.-Leer J
4.-Escribir “Dame la segunda calificación”
5.-Leer A
6.-Escribir “Dame la tercera calificación”
7.-Leer E
![Page 18: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/18.jpg)
8.-Resolver S=J+A+E
9.-Escribir “El resultado del proedio es”
10.- Escribir “El resultado del promedio es
11 Escribir S
12.- Fin
Inicio
“Dame la primera
calificación”
J
“Dame la segunda
calificación”
A
“Dame la tercera calificación”
E
S=J+E
“El resultado del promedio es”
S
FIN
![Page 19: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/19.jpg)
10.- El kilometraje recorido por un automóvil, dado el kilometraje
inicial y kilometraje final
Entrada kilometraje inicial J , kilometraje final I
Proceso L=J+I
Salida L
1.-Escribir “Dame el kilometraje inicial”
2.- Leer J
3.- Escribir “Dame el kilometraje final”
4.- Leer I
5.-Escribir “El resultado es”
6.-Realizar L=J+I
7.-Escribir L
8.- Fin
![Page 20: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/20.jpg)
Inicio
“Dame el kilometraje
inicial”
J
“Dame el kilometraje
final
I
“El resultado es”
L=J+I
L
Fin
![Page 21: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/21.jpg)
11.- Dada una calificación asignada en COBAY indicar si es
aprobatoria o reprobatora
Entrada “primera calificasion aprobatoria 80”
Proceso C=80
Salida C
1.-Escribir “Primera calificación aprobatoria
Leer 80
3.- Escribir “El resultado es”
4.-Realizar C=80
5.- Escribir 80
6 Fin
![Page 22: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/22.jpg)
Inicio
“Primera calificasion aprobatoria
”
80
“El resultado es”
C=80
80
Fin
![Page 23: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/23.jpg)
12.-Dados 2 numeros indicar cual es el mayor y cual es el menor o
bien indicar que son iguales
Entrada j, I
Poceso
M=J<I
Salida M
1.- Escribir “Dame el primer numero”
2.-Leer J
3.-Escribir “Dame el segundo numero”
4.- Leer I
5.- Escribir “El numero mayor es”
8 Realizar M=J<I
9.-Escribir M
10.-Fin
![Page 24: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/24.jpg)
Inicio
“Dame el primer numero
J
“Dame el segundo numero”
I
“El numero mayor es
M=J<I
M
Fin
![Page 25: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/25.jpg)
14.-Obtener el estatus de un alumno en COBAY teniendo en cuenta
lo siguiente
+ si reprobo mas de 5 materias es baja
+si reprobo exactamente 5 materias es rcuperacion
+ si reprobo 1 a 4 materias es coplementarias
+si no reprobo ninguna materia es regular
1.-IINICIO
2.-ESCRIBIR “DAME EL NUMERO DE MATERIAS REPROBADAS”
3.- LEER A
4.-ESCRIBIR “DAME EL NUMERO DE MATERIAS APROBADAS”
5.-LEER S
6.-REALIZARA R=A/S
7.- ESCRIBIR “DAME EL RESULTADO”
8.-LEER S
![Page 26: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/26.jpg)
9.-ESCRIBIR R
INICIO
“DAME EL NUMERO DE MATERIAS REPROBADAS”
A
“DAME EL NUMERO DE
MATERIAS APROBADAS”
S
A/S
“EL RSULTADO ES”
S
FIN
![Page 27: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/27.jpg)
![Page 28: Informatica](https://reader036.fdocumento.com/reader036/viewer/2022062522/56d6bd071a28ab30168c5bd2/html5/thumbnails/28.jpg)
INSTRUCCIONES TE ENCUENTRAS EN UNA DE LAS ESQUINAS DE LA CANCHA DE BASQUET DEL PLANTEL Y NECESITAS TRANSLADARTE AL OTRO EXTREMO BRINCANDO EN UN SOLO PIE, POR LO QUE DEBES RECORRER LA MENOR DISTANCIA POSIBLE .PLANTEA MEDIANTE CADA UNO DE LOS PASOS DE LA METODOLOGIA DE SOLUCION DE PROBLEMAS LA SOLUCION AL PROBLEMA PANTEADO
PASO 1.- ESTAR EN LA ESQUINA DE LA CANCHA
2.- CAMINAR DE LA PUNTA A LA OTRA RECTO
3.- LISTO