ALGORITMOS Y DIAGRAMAS DE FLUJO
P-01.-HALLAR LA SUMA DE LOS 7 PRIMEROS NUMEROS NATURALES. SOLUCIÓN ALGORITMO Proceso SOL_PROB_01_MIENTRAS n=0; suma=0; Mientras n<=6 Hacer suma=suma+n; n=n+1; FinMientras Escribir "la suma es: ",suma; FinProceso
ALGORITMO
Proceso SOL_PROB_01_REPETIDOR n=0; suma=0; Repetir suma =suma+n; n=n+1; Hasta Que n>6 Escribir "la suma es: ", suma; FinProceso
SOL. DE ALGUNOS ALGUNOS PROBLEMAS WAIRA ”
”
1
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
ALGORITMOS Y DIAGRAMAS DE FLUJO
P-02.-HALLAR LA SUMA DE LOS PRIMEROS 20 NÚMEROS DIVISIBLES POR 4. SOLUCIÓN ALGORITMO Proceso SOL_PROB_02_MIENTRAS N<-0; p<-0; suma<-0; Mientras N<=19 Hacer P<-N*4; suma<-suma+P; N<-N+1; FinMientras Escribir 'la suma es: ',suma; FinProceso
ALGORITMO Proceso SOL_PROB_02_REPETIDOR n=0; p=0; suma=0; Repetir p=n*4; suma=suma+p; n=n+1; Hasta Que n>19 Escribir "la suma es: ",suma; FinProceso
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
ALGORITMOS Y DIAGRAMAS DE FLUJO
P-03.-CALCULAR LA SUMA DE 1-200. SOLUCIÓN ALGORITMO Proceso SOL_PROB_03_MIENTRAS n=1; suma=0; Mientras n<=200 Hacer suma=suma+n; n=n+1; FinMientras Escribir "la suma de 1-200 es: ",suma; FinProceso
ALGORITMO Proceso SOL_PROB_03_REPETIDOR n=1; suma=0; Repetir suma=suma+n; n=n+1; Hasta Que n>200 Escribir "la suma de 1-200 es: ",suma; FinProceso
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
ALGORITMOS Y DIAGRAMAS DE FLUJO
P-04.-CALCULAR LA SUMA DE LOS CUADRADOS DE LOS PRIMEROS 100 NUMEROS NATURALES. (TENER PRESENTE FORMULA: ∑= =
∗( ∗(+) +)∗(+)
)
SOLUCIÓN ALGORITMO Proceso SOL_PROB_04 n=99; suma=0; suma=(n*(n+1)*(2*n+1))/6; Escribir "el resultado es: ",suma; FinProceso
P-05.- DADO EL VALOR DE COMPRA DE UN PRODUCTO, HALLAR EL IGV (18%) Y EL PRECIO DE VENTA DEL PRODUCTO. PRODUCTO. SOLUCIÓN
ALGORITMO Proceso SOL_PROB_05 Definir pc,i,pv Como Real; Escribir 'ingrese el precio de compra'; Leer pc; i=(18*pc)/100; pv=pc+i; Escribir 'el igv es: ',i; Escribir 'el precio de venta es: ',pv; ' ,pv; FinProceso
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
ALGORITMOS Y DIAGRAMAS DE FLUJO
P-06.-EN UNA PLAYA DE ESTACIONAMIENTO COBRAN S/.2.5 x POR HORA O FRACCÍON, DISEÑAR UN ALGORITMO QUE DETERMINE DETERMINE CUANTO HABRA QUE PAGAR UN CLIENTE POR EL ESTACIONAMIENTO DE VEHICULO, CONOCIENDO EL TIEMPO DE ESTACIONAMIENTO EN HORAS Y MINUTOS. NOTA: SI SE DE 15 min SE CONSIDERA PAGO POR UNA HORA. SOLUCIÓN ALGORITMO Proceso SOL_PROB_06 Definir hr,min,pe Como Real; Escribir "ingrese numero de hora(s) de estacionamiento"; Leer hr; Escribir "ingrese el tiempo restante de min"; Leer min; Si min>15 Entonces pe=((hr+1)*2.5); Sino pe=(hr*2.5); FinSi Escribir "el pago por estacionamiento es: ",pe ; FinProceso
P-07.-EN UN SALON DE CLASE SE DESEA SABER: A.- ¿Cuántos hombres y mujeres están e stán matriculados? B.- ¿Cuántos solteros mayores de 18 años tienen hijos. C.- ¿Cuántos casados menores de 30 años no tienen hijos? D.- ¿Cuántas casadas tienen hijos?
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
ALGORITMOS Y DIAGRAMAS DE FLUJO
Tener presente lo siguiente: NH=Número de Hombres. NM=Número de Mujeres. SMECH=Solteros Mayores de Edad (>18) Con Hijos. CMCH=Casadas Mujeres Con Hijos. CMTSH=Casados Menores Menores de Treinta años (<30) (<30 ) Sin Hijos.
EC=Estado Civil (admite Casados ‘C’ y Solteros ‘S’)
NHI=Número de Hijos ALGORITMO Proceso SOL_PROB_07 NH=0,NM=0,CMCH=0,SMECH=0,CMTSH=0; Leer SEXO,EC,NHI,EDAD; Repetir Si SEXO='H' Entonces NH<-(NH+1); Si EC='S' Entonces Si EDAD>18 Entonces Si NHI>0 Entonces SMECH<-(SMECH+1); FinSi FinSi Sino Si EDAD>30 Entonces Si NHI=0 Entonces CMTSH<-(CMTSH+1); FinSi FinSi FinSi Sino NM<-(NM+1);
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
ALGORITMOS Y DIAGRAMAS DE FLUJO
CMCH<-(CMCH+1); FinSi FinSi FinSi Hasta Que /* Escribir 'imprimir las respuestas', NH,NM,CMCH,CMTSH,SMECH; NH,NM,CMCH,CMTSH,SMECH; FinProceso
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
ALGORITMOS Y DIAGRAMAS DE FLUJO
HFC=Hombres Fuman Cigarro (Hamilton ‘H’ y Premier ‘P’)
MFC=Mujeres MFC=Mujeres Fuman Cigarro CI=Cigarro (1° opción) CI1=Cigarro (2° opción)
ALGORITMO Proceso SOL_PROB_08 PNF=0, HFC=0, MFC=0; Repetir Leer FUMAR,EDAD,SEXO,CI,CI1; Si FUMAR='S" Entonces Si SEXO='M' Entonces Si EDAD<20 Entonces Si CI='H' Entonces Si CI1='P' Entonces HFC=HFC+1; FinSi FinSi FinSi Sino Si EDAD>18 Entonces Si CI='P' Entonces MFC=MFC+1; FinSi
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
ALGORITMOS Y DIAGRAMAS DE FLUJO
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
ALGORITMOS Y DIAGRAMAS DE FLUJO
P-01.suma de los 7° números naturales
P-02.suma de los 20 primeros números naturales divisibles por 4.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
ALGORITMOS Y DIAGRAMAS DE FLUJO
P-03.hallar la suma de 1 al 200.
P-04.hallar la suma de los cuadrados de los 100 primeros números naturales.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
ALGORITMOS Y DIAGRAMAS DE FLUJO
P-05. Dado el valor de compra de un producto, hallar el IGV (18%) y el precio de venta.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
The world’s largest digital library
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
ALGORITMOS Y DIAGRAMAS DE FLUJO
P-06.-EN UNA PLAYA DE ESTACIONAMIENTO COBRAN S/.2.5 x POR HORA O FRACCÍON, DISEÑAR UN ALGORITMO QUE DETERMINE CUANTO CUANTO HABRA QUE PAGAR PAGAR UN CLIENTE POR EL ESTACIONAMIENTO DE VEHICULO, CONOCIENDO EL TIEMPO DE ESTACIONAMIENTO EN HORAS Y MINUTOS. NOTA: SI SE pasa DE 15 min SE CONSIDERA PAGO POR UNA HORA.