tag:blogger.com,1999:blog-57414205625247830372024-03-12T22:00:15.666-07:00ALGORITMOS (DFD)Jonathan salgadohttp://www.blogger.com/profile/13474087081881697631noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-5741420562524783037.post-47505227995425104702011-05-02T14:38:00.000-07:002011-05-02T15:04:40.985-07:00CICLO WHILE (MIENTRAS) SEGUNDO CORTE<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">MIENTRAS = mientras se cumpla la condición se cumple el ciclo si no se salta el ciclo.</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHnJCSWzrB-GgfsIvauCrDNXMDvOeybjf7f_B3EiPfcW42PjKsFIh1J1AMVxmnnTXDSqonWS4Ac_pxs4Ir3KmJ-3MARO9HPFEQDU5oaMZPrvfFPXMIBxwDwjPOlYIzFMlvyNV5kEr40g/s1600/Imagen1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><img border="0" height="148" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHnJCSWzrB-GgfsIvauCrDNXMDvOeybjf7f_B3EiPfcW42PjKsFIh1J1AMVxmnnTXDSqonWS4Ac_pxs4Ir3KmJ-3MARO9HPFEQDU5oaMZPrvfFPXMIBxwDwjPOlYIzFMlvyNV5kEr40g/s320/Imagen1.png" width="320" /></span></a></div><div class="separator" style="clear: both; text-align: center;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="separator" style="clear: both; text-align: center;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Estructura while ' mientras que'</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">inicio</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">instrucción 1</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">mientras (expresión lógica)</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">haga</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">instrucción 2</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">instrucción 3</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">fin mientras</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">fin programa</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="separator" style="clear: both; text-align: center;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Hacer un algoritmo que lea 5 numeros y determine la suma entre ellos </span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">enteros: n,i,suma</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">inicio </span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">i=1</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">suma=0</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">mientras: (i<=5) haga</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">mostrar 'digite un numero'</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">leer:n</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">suma=suma+n</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">i=i+1</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">fin mientras</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">mostrar:'la suma es ',suma</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">fin</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">INDICA EL NUMERO MAYOR</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSZTfHNO9zgy_luIDOa02xSxge0yjhzXjwAOq5rfdNQ8gWDkedvP-jiWgg-439UMfO0UesJc1qpwsft6RPtFRPU6dlmE0uAJlr5ZKN43XznkN3wO9w2WHBx8u77IB5ltrtBOPt-Hbz-g/s1600/vector+mayor+2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSZTfHNO9zgy_luIDOa02xSxge0yjhzXjwAOq5rfdNQ8gWDkedvP-jiWgg-439UMfO0UesJc1qpwsft6RPtFRPU6dlmE0uAJlr5ZKN43XznkN3wO9w2WHBx8u77IB5ltrtBOPt-Hbz-g/s400/vector+mayor+2.jpg" width="257" /></a></div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSZTfHNO9zgy_luIDOa02xSxge0yjhzXjwAOq5rfdNQ8gWDkedvP-jiWgg-439UMfO0UesJc1qpwsft6RPtFRPU6dlmE0uAJlr5ZKN43XznkN3wO9w2WHBx8u77IB5ltrtBOPt-Hbz-g/s1600/vector+mayor+2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSZTfHNO9zgy_luIDOa02xSxge0yjhzXjwAOq5rfdNQ8gWDkedvP-jiWgg-439UMfO0UesJc1qpwsft6RPtFRPU6dlmE0uAJlr5ZKN43XznkN3wO9w2WHBx8u77IB5ltrtBOPt-Hbz-g/s320/vector+mayor+2.jpg" width="206" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGhxpk6Q0czasZ2mr0Xn5vY3plO4VMpHiRNZMKtzCIKDSg21BqK8SN_HSo67SpKetZ1n7eR-pedYQQjrGjRr9VSS3c3WJht16p1H9HoS9Wq3X_20Y_Z-qfmyikp9rbBMWQxat3JpjpQg/s1600/Imagen1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGhxpk6Q0czasZ2mr0Xn5vY3plO4VMpHiRNZMKtzCIKDSg21BqK8SN_HSo67SpKetZ1n7eR-pedYQQjrGjRr9VSS3c3WJht16p1H9HoS9Wq3X_20Y_Z-qfmyikp9rbBMWQxat3JpjpQg/s400/Imagen1.png" width="328" /></a></div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="separator" style="clear: both; text-align: justify;"></div><div style="line-height: 18px;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">ESTO PARA QUE ME SIRVE?</span></div></div><div style="line-height: 18px;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 18px;">El ciclo WHILE (mientras) me facilita mucho ala hora de elaborar un algoritmo de esa misma forma permitiendo </span>Cuando se ejecuta la instrucción hacer- mientras (while, do-while), se repite mientras el valor de la expresión de la condición sea verdadera.</span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">La estructura mientras termina cuando la condición es falsa</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;"><br />
</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;">¿EN UN PROBLEMA COTIDIANO COMO APLICO LO APRENDIDO?</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;"><br />
</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Las instrucciones de un algoritmo en ciclo WHILE me permite dado el caso que en una situación yo solo necesite la verdad y esta respuesta es la que cumple , si esta no es la que se quiere cumplir que simplemente se de un fin .</span></div><br />
<div class="separator" style="clear: both; text-align: justify;"><br />
</div>Jonathan salgadohttp://www.blogger.com/profile/13474087081881697631noreply@blogger.com0tag:blogger.com,1999:blog-5741420562524783037.post-15051197764848616552011-04-23T18:36:00.000-07:002011-05-26T14:18:47.564-07:00CICLO FOR (Para) SEGUNDO CORTE<b><i><u><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">SEGUNDO CORTE</span></u></i></b><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">SEEl ciclo PARA contiene un INICIO,FIN,UN INCREMENTO.Para la variable con la que trabajemos.</span><br />
<div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><br />
</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">Este es un ejemplo para un algoritmo de tabla de multiplicar:</span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7wCg6lu5CKkCti75cDEYrxuydt27zyfa8N9JmKF6D91ePY0Tbniu4-hWWBItUK1ivLaUsU3aCjsyT71mY6M8EbUBHfg3iGM5ylHaZlHOcUCPUBh0BEI3cvd0nPkPgwFJ6FVZVeIAC8g/s1600/Imagen1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span class="Apple-style-span" style="color: black; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><img border="0" height="247" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7wCg6lu5CKkCti75cDEYrxuydt27zyfa8N9JmKF6D91ePY0Tbniu4-hWWBItUK1ivLaUsU3aCjsyT71mY6M8EbUBHfg3iGM5ylHaZlHOcUCPUBh0BEI3cvd0nPkPgwFJ6FVZVeIAC8g/s400/Imagen1.png" width="400" /></span></a></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><br />
</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">Primer recuadro: ahi se coloca la variable controladora, es decir la variable que vamos a usar para el ciclo. En nuestro caso, la variable se llama: ciclo</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">Segundo recuadro: es el valor inicial que le daremos a la variable. Es decir que nuestra variable ciclo va a valer 1 al comienzo, por lo tanto la tabla de multiplicacion la comenzaremos con 1, lo cual está correcto porque las tablas de multiplicar llevan un formato:</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">2 x 1 = 2</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">2 x 2 = 4 …</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">Tercer recuadro: es el valor final ( tope / meta ) que le daremos a la variable. Es decir que nuestra variable ciclo va a llegar a valer un maximo de 12 al final, por lo tanto la tabla de multiplicacion la terminaremos con 12</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">2 x 11 = 22</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">2 x 12 = 24</span></div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span class="Apple-style-span" style="line-height: 18px;">Cuarto recuadro:</span><span class="Apple-style-span" style="line-height: 18px;"> </span><span class="Apple-style-span" style="line-height: 18px;">es el incremento, es decir de cuanto en cuanto va a ir aumentando el ciclo. En éste caso de uno en uno. Porque la tabla de multiplicar va de uno en uno, demostración:</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><br />
</span><br />
<div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">2 x 5 = 10</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">2 x 6 = 12</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">2 x 7 = 14</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">2 x 8 = 16 …</span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGgF1SOVlLQ5YwnxjdmxKFYTMWW4Yfs5EiZzShsvQHaSRxN0yHcWlptuRjjh18RpC7WdI_QLBaKr06DKbGnec53DSQXrxvm17aDixPHmAJplVWt2q0Quv38qDjN6x5Z6p8rxlno8T3tw/s1600/kejfwefnowejjfno.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGgF1SOVlLQ5YwnxjdmxKFYTMWW4Yfs5EiZzShsvQHaSRxN0yHcWlptuRjjh18RpC7WdI_QLBaKr06DKbGnec53DSQXrxvm17aDixPHmAJplVWt2q0Quv38qDjN6x5Z6p8rxlno8T3tw/s400/kejfwefnowejjfno.png" width="298" /></span></a></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><br />
</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">EJERCICIO TRABAJADO EN CLASE</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 18px;">HACER UN ALGORITMO QUE LEA 5 NÚMEROS DADOS POR UN USUARIO Y LUEGO MUESTRE EL RESULTADO DE LA SUMA.</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">INICIO</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 18px;">Entero,i,suma</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">suma:o</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">para= i , 1 hasta 5 , 1</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">leer: n</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">suma=suma + n</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">fin para</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">mostrar:suma</span></div><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">fin</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 18px;">ALGORITMO QUE PERMITA SUMAR EL NUMERO DE BESES QUE EL USUARIO QUIERA</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 18px;"><br />
</span><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHFZYfuLP6uUHmr3YmK9a3ooLAQ2HG843ASlF-8YPVrO72sWbyWwrACsjBS_vkaLyFxrQwTs0S3DOT-orC5ZMEFPCbTMAMAYGASUQWWOiqtP8UON_Xv90zreM-8IlRTGjpGPJByEtHcw/s1600/Imagen1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHFZYfuLP6uUHmr3YmK9a3ooLAQ2HG843ASlF-8YPVrO72sWbyWwrACsjBS_vkaLyFxrQwTs0S3DOT-orC5ZMEFPCbTMAMAYGASUQWWOiqtP8UON_Xv90zreM-8IlRTGjpGPJByEtHcw/s320/Imagen1.png" width="195" /></span></a></div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 18px;"><br />
</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 10px;"><div style="line-height: 18px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">¿ESTO PARA QUE ME SIRVE?</span></div><div style="line-height: 18px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><br />
</span></div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span class="Apple-style-span" style="line-height: 18px;">El ciclo FOR me facilita mucho ala hora de hacer un algoritmo ya que permite ala </span><span class="Apple-style-span" style="line-height: 18px;">variable</span><span class="Apple-style-span" style="line-height: 18px;"> dar un </span><span class="Apple-style-span" style="line-height: 18px;">comienzo</span><span class="Apple-style-span" style="line-height: 18px;"> un limite </span><span class="Apple-style-span"><span class="Apple-style-span"><span class="Apple-style-span" style="line-height: 18px;">permitiendo le al usuario poder decidir el limite de números. Permitiéndonos reducir el algoritmo sin necesidad de agregar mas ordenes .</span></span></span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 18px;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 18px;">¿EN UN PROBLEMA COTIDIANO COMO APLICO LO APRENDIDO?</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 18px;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;">Las instrucciones de un algoritmo en ciclo FOR deben son claras, precisas para la vida cotidiana por que este es una orden directa permitiendo llegar aun solo objetivo sin necesidad de alargar con barias opciones.</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><br />
</span></div>Jonathan salgadohttp://www.blogger.com/profile/13474087081881697631noreply@blogger.com0tag:blogger.com,1999:blog-5741420562524783037.post-74222511559333368372011-03-26T12:04:00.000-07:002011-03-26T12:04:17.449-07:00Taller fotocopias 1 DFD1Algoritmo que lea el nombre de una trabajador la cantidad de meses que trabajo al año y muestre el porcentaje de meses que trabajo.<br />
<div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBcki6afmGbd9lDaVANoDyPdIvsnLMhYCnEUbiphf2xeueZd6NLSC6P2vPAYwPjfklB-sb2q0SCBzIf0bJFMdBlpil9DV6TbnqG1DwQXKAUy9nxLV2Bcqy8ZY4twtZBRI047flbz5viA/s1600/Imagen1+porcentaje+a%25C3%25B1o.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBcki6afmGbd9lDaVANoDyPdIvsnLMhYCnEUbiphf2xeueZd6NLSC6P2vPAYwPjfklB-sb2q0SCBzIf0bJFMdBlpil9DV6TbnqG1DwQXKAUy9nxLV2Bcqy8ZY4twtZBRI047flbz5viA/s320/Imagen1+porcentaje+a%25C3%25B1o.png" width="176" /></a></div><br />
PSEUDOCODIGO<br />
inicio<br />
mostrar:('nombre del trabajador')<br />
leer:nombre<br />
mostrar:('digite meses laborados')<br />
leer:meses<br />
porcentaje=meses*100/12<br />
mostrar:('el porcentaje de trabajo al año es ',porcentaje)<br />
mostrar:('para el trabajador ',nombre)<br />
fin<br />
2Algoritmo en el que el usuario ingrese horas de trabajo de la semana el valor de cada hora y muestre el total a pagar y minutos que trabajo.<br />
<div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPpyS6YQv9oTakd_R4sKLHovFbUVKp_5EFWM7z1ndjVId-RhUH7W9NMHwth6RzLVCr_TGuy5GIAkg2BnpNehldX64X28R8-Drbkse3-iIXkcr1S3OFeSc6yyjytrtffkCEEC07OHHjHw/s1600/Imagen2+trabajo+en+minutos.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPpyS6YQv9oTakd_R4sKLHovFbUVKp_5EFWM7z1ndjVId-RhUH7W9NMHwth6RzLVCr_TGuy5GIAkg2BnpNehldX64X28R8-Drbkse3-iIXkcr1S3OFeSc6yyjytrtffkCEEC07OHHjHw/s320/Imagen2+trabajo+en+minutos.png" width="162" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">PSEUDOCODIGO</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">inicio </div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite horas trabajadas')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:horas</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite valor por hora')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:valor</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">total=hora*valor</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">minuto=hora*60</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('total a pagar es ',total)</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('total de minutos ',minuto)</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">fin</div><br />
<br />
3En una tienda hay una maquina registradora en ella se paga un producto se ingresa cantidad de artículos valor producto dependiendo de este se aplica descuento. al total IVA de del 16% ..registre venta y total a pagar.<br />
<div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbn0pJ-J3emugdcw5pqeY4Q1iDCEO9Mq1GxqBZV0nhbLohIMpFzB00a-6wqTHAUv3fKRhwtgb_8Af-hqDqBWwJx8-Dx0m7l_eCHS4uYYsHzgB-2pNZlxlEF3eykIbzIwMVPDhwjeb77g/s1600/Imagen3IVA.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbn0pJ-J3emugdcw5pqeY4Q1iDCEO9Mq1GxqBZV0nhbLohIMpFzB00a-6wqTHAUv3fKRhwtgb_8Af-hqDqBWwJx8-Dx0m7l_eCHS4uYYsHzgB-2pNZlxlEF3eykIbzIwMVPDhwjeb77g/s320/Imagen3IVA.png" width="118" /></a></div><div class="separator" style="clear: both; text-align: left;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">PSEUDOCODIGO</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">inicio </div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite cantidad de articulo')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:articulos</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite valor de articulos')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:valor</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite valor del producto')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:producto</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite descuento en porcentaje')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:descuento</div><br />
<br />
<div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">totalb=articulos*valor</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">valor descuento=totalvalor*descuento/100</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">totalb=totalb-descuento</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">IVA=totalb+16/100</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">totalpagar=totalb+IVA</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('el total es ',total|pagar)</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">fin</div><br />
<br />
4Que lea nombre del animal comida preferida numero de porciones valor porción y muestre nombre del animal y el costo del alimento.<br />
<div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirP_Ea3U2oBaFB4OgXup5t5gwR1ndX62aVJKwORqyD4I1nXbdrv8toW4Ut_iR1ZDpgCwvmTPa49Nc6tZg7W93QWWR87s8qs3Yn8j3hpMatdNC7SxCCr9W47i3fqLKVDa07xdK7JNSs3g/s1600/Imagenanimal.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirP_Ea3U2oBaFB4OgXup5t5gwR1ndX62aVJKwORqyD4I1nXbdrv8toW4Ut_iR1ZDpgCwvmTPa49Nc6tZg7W93QWWR87s8qs3Yn8j3hpMatdNC7SxCCr9W47i3fqLKVDa07xdK7JNSs3g/s320/Imagenanimal.png" width="108" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">PSEUDOCODIGO</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">inicio </div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('nombre del animal')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:nombre</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('comida preferida')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:comida</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('porciones al día')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:porciones</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('valor de la porción')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:valor</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">costo=porciones*valor</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('el costo del alimento es ',costo)</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('numero de porciones es''porciones)</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:(el nombre es',nombre)</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">fin</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><br />
<div class="separator" style="clear: both; text-align: left;">5lea nombre de la persona comida preferida precio la cantidad de dinero que posee y la cantidad de comida que se puede comprar con ese dinero.</div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBCvpcLFb-seyWRIFuZRAJ79eeojXwS81v9OJpwX3MYes7ogYPGtjCmh99wyoQzuJSo2156Rq2M3cGUZyClhX72yJC_dNnbTrAKmFJs2iCN8FJwSk9Dj0MUCAyMCEUnK1MKs3TkH2X2A/s1600/Imagencomida+preferida.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBCvpcLFb-seyWRIFuZRAJ79eeojXwS81v9OJpwX3MYes7ogYPGtjCmh99wyoQzuJSo2156Rq2M3cGUZyClhX72yJC_dNnbTrAKmFJs2iCN8FJwSk9Dj0MUCAyMCEUnK1MKs3TkH2X2A/s320/Imagencomida+preferida.png" width="83" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">PSEUDOCODIGO</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">inicio </div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('nombre de la persona')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:nombre</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite comida favorita)</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:comida</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite valor del producto')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:producto</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite precio de comida favorita')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:favorita</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite dinero que posee')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:dinero</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">cantidad=dinero-comida</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">dinero=dinero/comida</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:(cantidad de comida que puede comprar es',cantidad)</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('para persona ',nombre)</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">fin</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><br />
<br />
6Algoritmo que se digite numero de porciones al desayuno almuerzo y cena de un gato y muestre costo total numero de porciones total y el tiempo en minutos que se demora en comer<br />
<div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA2bjyJYKU30j7u5bJOnNsuUy23EqfwlswdlHR9H33HYXZtNEXmL0MWJ-JZOvgF33cParmlmXIqdAIBdU0CwDvQUZMGq9xjooc8btJyFlPw2s2Pll42gNTum29g8QbSOwhuk5WE9sKNw/s1600/Imagen1gatico.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA2bjyJYKU30j7u5bJOnNsuUy23EqfwlswdlHR9H33HYXZtNEXmL0MWJ-JZOvgF33cParmlmXIqdAIBdU0CwDvQUZMGq9xjooc8btJyFlPw2s2Pll42gNTum29g8QbSOwhuk5WE9sKNw/s320/Imagen1gatico.png" width="74" /></a></div><br />
<div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">PSEUDOCODIGO</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">inicio </div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digitenumero de porciones al desayuno')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:numerod</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite tiempo que duro en comer en minutos')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:tiempod</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite porciones al almuerzo')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:numeropa</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite tiempo que duro en comer en minutos')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:tiempoa</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite porciones de la cena')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:numeroc</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('digite tiempo que duro en comer en minutos')</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">leer:tiempoc</div><br />
<br />
<div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">numeroc=numerod+numeroa+numeroc</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">tiempo=(tiempod+tiempoa+tiempoc)7numerod</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">costo=numerod*2500</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar.('el costo total es',costo)</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('el bumero total de porciones es ',numerod)</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">mostrar:('el tiempo en minutos es'tiempopr</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">fin</div><div><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div>Jonathan salgadohttp://www.blogger.com/profile/13474087081881697631noreply@blogger.com1tag:blogger.com,1999:blog-5741420562524783037.post-62039169309910718992011-03-25T20:42:00.000-07:002011-05-26T14:30:26.438-07:00ALGORITMOS EN CLASE ( con decisión SI o NO)<span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; line-height: 18px;">Símbolo de decisión. Indica la realización de una comparación de valores.</span><br />
<span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; line-height: 18px;"><br />
</span><br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDzVYaFpKTYE8q0aEKkh_dzBcAHAgXUmQflwajlH-QNi6O7KUaFGzFwqbJq76vTQ8v86kL_NsKLpAQTAbWLyFYFKo-Qb_aZEO_daqdSngkd5MAAS5XgGaWokgxShJEOZPTvx6_v5tEiQ/s1600/simbolo_decision.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDzVYaFpKTYE8q0aEKkh_dzBcAHAgXUmQflwajlH-QNi6O7KUaFGzFwqbJq76vTQ8v86kL_NsKLpAQTAbWLyFYFKo-Qb_aZEO_daqdSngkd5MAAS5XgGaWokgxShJEOZPTvx6_v5tEiQ/s1600/simbolo_decision.gif" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
EJERCICIOS<br />
1Algoritmo que compare dos números y muestre el mensaje de cual es mayor.<br />
<div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYR4DYFqRWXoh9Ywut-FFkwQtETuTk5DqwtqPSpNr5PKQJ60hRvo8wZXpghaNhI-QC2Z6xQv2PJkHQJ7PXnkJpd7W2NP9v-PKh2HPwSijNT_E823X-mhgRz76cBntQXigDyMb-0_CdvQ/s1600/Imagen4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYR4DYFqRWXoh9Ywut-FFkwQtETuTk5DqwtqPSpNr5PKQJ60hRvo8wZXpghaNhI-QC2Z6xQv2PJkHQJ7PXnkJpd7W2NP9v-PKh2HPwSijNT_E823X-mhgRz76cBntQXigDyMb-0_CdvQ/s320/Imagen4.png" width="240" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">PSEUDOCODIGO</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">inicio</div><div class="separator" style="clear: both; text-align: left;">mostrar:(' Digite un numero')</div><div class="separator" style="clear: both; text-align: left;">leer:numero1</div><div class="separator" style="clear: both; text-align: left;">mostrar:('Digite un numero')</div><div class="separator" style="clear: both; text-align: left;">leer:numero2</div><div class="separator" style="clear: both; text-align: left;">SI (numero>numero2)entonces</div><div class="separator" style="clear: both; text-align: left;">mostrar('El numero mayor es',numero1)</div><div class="separator" style="clear: both; text-align: left;">finsi</div><div class="separator" style="clear: both; text-align: left;">mostrar:('El numero mayor es',numero2)</div><div class="separator" style="clear: both; text-align: left;">fin</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">2Algoritmo que lea un numero y si el numero es par muestre el doble del numero y si es impar muestre la mitad del numero</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN7XSvIDdgtQECnf3QTuOu9QBAENkubG44yFco8L6nZ9iPMFJ6Bg0gC4R3ODXx7lEQQfqLFMhGJwtbYtHBUbbaTZS4mA2fe3yqVl1cwrXJsm4MUJbF1QJ6ozRdsRRiKwEnD2kmDOn6pA/s1600/Imagen5par+o+impar.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN7XSvIDdgtQECnf3QTuOu9QBAENkubG44yFco8L6nZ9iPMFJ6Bg0gC4R3ODXx7lEQQfqLFMhGJwtbYtHBUbbaTZS4mA2fe3yqVl1cwrXJsm4MUJbF1QJ6ozRdsRRiKwEnD2kmDOn6pA/s320/Imagen5par+o+impar.png" width="253" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">PSEUDOCODIGO</div><div class="separator" style="clear: both; text-align: left;">inicio </div><div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">mostrar:(' Digite un numero')</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">leer:NUMERO1</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">SI (NUMERO1 MOD 2=0)entonces</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">par=NUMERO1*2</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">mostrar:('El numero es par ',par)</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">sino</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">impar=NUMERO1/2</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">mostrar:('El numero es impar ',impar)</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">fin si </div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">fin si</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">fin</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><br />
</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">3Algoritmo que calcule la suma de 3 numeros si la suma es mayor que 100 mostrar un mensaje si es menor mostrar otro mensaje</div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwlnQoDbh3d7aoLfrYg7YIKBeIS-CEFiv5FPUKf_qJHwZ7ay7bwuQYGXmsfAFTXZYemnt_X08_55HovofsXFNuvc-qNBeHsE48DX0YNcJ0ieaxJ6x0WgMADzuZ5SqebiZv8w_uEJFMbQ/s1600/Imagen63+numeros.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwlnQoDbh3d7aoLfrYg7YIKBeIS-CEFiv5FPUKf_qJHwZ7ay7bwuQYGXmsfAFTXZYemnt_X08_55HovofsXFNuvc-qNBeHsE48DX0YNcJ0ieaxJ6x0WgMADzuZ5SqebiZv8w_uEJFMbQ/s320/Imagen63+numeros.png" width="205" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">PSEUDOCODIGO</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><br />
</div><br />
<div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">inicio</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">mostrar:(' Digite un numero')</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">leer:numero1</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">mostrar:('Digite un numero')</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">leer:numero2</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"></div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">mostrar:('Digite un numero')</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">leer:numero3</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">suma=numero1+numero2+numero3</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">SI suma>100</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">mostrar:('la suma es mayor que 100')</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">sino</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">mostrar:('la suma es menor que 100')</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">fin si </div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">fin si </div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">fin</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><br />
</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">4Algoritmo que lea un numero si el numero es mayor que 10 muestre el cuadrado del numero si no muestre el residuo de dividir por 3</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc65i0TOnYS2xo7S54AYjcGyz1d4yVn3LL6ADR8mtacNyEigmB8wp1P6wcuMFISDiF_rlZ1aCtrZUnHrze6G0CeTGuF_LEa23yYT6CYf4It37f7OBqoLLBdyDwF_GX559KET7tYbX6mQ/s1600/Imagen7+mayor+q+10+dividir+y+residuo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc65i0TOnYS2xo7S54AYjcGyz1d4yVn3LL6ADR8mtacNyEigmB8wp1P6wcuMFISDiF_rlZ1aCtrZUnHrze6G0CeTGuF_LEa23yYT6CYf4It37f7OBqoLLBdyDwF_GX559KET7tYbX6mQ/s320/Imagen7+mayor+q+10+dividir+y+residuo.png" width="268" /></a></div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><br />
</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">PSEUDOCODIGO</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><br />
</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"></div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">inicio </div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"></div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">mostrar:(' Digite un numero')</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">leer:NUMERO1</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">SI (NUMERO1>10)entonces</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">resultado=NUMERO1*NUMERO1</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">mostrar:('EL CUADRADO DEL NUMERO1 ES',RESULTADO)</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">sino</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">resultado=NUMERO1 MOD 3</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">mostrar:(''EL RESIDUO DE DIVIDIR EL NHUMERO EN 3 ES ' ,RESULTADO)</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">fin si </div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">fin si</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">fin</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><br />
</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">5Algoritmo que lea la edad de una persona si es mayor de edad muestre los dias vividos sino muestre un mensaje indicando que es menor de edad</div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgss-4I7NKLwKH4p-rrFloMXmN9KY37J9HKWe8uV3i91tdwzCOT0XhK0KGUwcmErBGveID8AgysMWd-sgJTeMYYBI9NjyhQZWN7AZ4akDMcvchH6aV0v-L1iMiMNfaYaJDf42V43qcZqg/s1600/Imagen8dias+vividos.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgss-4I7NKLwKH4p-rrFloMXmN9KY37J9HKWe8uV3i91tdwzCOT0XhK0KGUwcmErBGveID8AgysMWd-sgJTeMYYBI9NjyhQZWN7AZ4akDMcvchH6aV0v-L1iMiMNfaYaJDf42V43qcZqg/s320/Imagen8dias+vividos.png" width="239" /></a></div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><br />
</div><br />
<br />
<div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">PSEUDOCODIGO</div><div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">inicio </div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"></div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">mostrar:(' Digite edad de la persona')</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">leer:edad</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">SI (edad>18)entonces</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">edad=365*edad</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">mostrar:(''LOS DIAS VIVIDOS SON',edad)</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">sino</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">mostrar:('ES MENOR DE EDAD',edad)</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">fin si </div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">fin si</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">fin</div></div><div><br />
</div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"></div><div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"></span></div><div style="line-height: 18px;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">ESTO PARA QUE ME SIRVE?</span></span></div></div></div></div><div style="line-height: 18px;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></span></div></div></div></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 18px;">Es algoritmos me sirven para poder encontrar una solución a un problema de tal forma que este me permita dar directamente una orden que me lleve a la </span><span class="Apple-style-span" style="line-height: 18px;">solución</span><span class="Apple-style-span" style="line-height: 18px;"> deseada.</span></span></span></div></div></div><div style="line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;"><br />
</span></span></div></div></div><div style="line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;">¿EN UN PROBLEMA COTIDIANO COMO APLICO LO APRENDIDO?</span></span></div></div></div><div style="line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;"><br />
</span></span></div></div></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Las instrucciones de un algoritmo para la vida gracias ala decisión pues simplemente de una situación cual sea pueda llegar a lo que se desea si o no. </span></span></div></div></div></div></div></div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><br />
</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><br />
</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><br />
</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><br />
</div>Jonathan salgadohttp://www.blogger.com/profile/13474087081881697631noreply@blogger.com3tag:blogger.com,1999:blog-5741420562524783037.post-38104880825482955602011-03-24T19:20:00.000-07:002011-05-26T14:10:29.844-07:00ALGORITMOS EN CLASE DFD<div style="text-align: justify;">1=)Algoritmo en el cual un usuario ingresa horas trabajadas, el valor de cada hora y muestra el total a pagar y los minutos que trabajo.</div><div style="text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAODrtsZtpQiJXDvbODHpn9pS_1KxEQei740BN1dAWOSBYo8x3re7lwXCvq6kXp-RuFQRPqleS4l4Ut7XcD2jOBtg2Lfy4xkSCqDEIZeb7L7Jt8IxuTx-G_IUk00WZPIT0mRmCzh9qqA/s1600/Imagen1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;"><br />
</a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAODrtsZtpQiJXDvbODHpn9pS_1KxEQei740BN1dAWOSBYo8x3re7lwXCvq6kXp-RuFQRPqleS4l4Ut7XcD2jOBtg2Lfy4xkSCqDEIZeb7L7Jt8IxuTx-G_IUk00WZPIT0mRmCzh9qqA/s1600/Imagen1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;"><br />
</a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAODrtsZtpQiJXDvbODHpn9pS_1KxEQei740BN1dAWOSBYo8x3re7lwXCvq6kXp-RuFQRPqleS4l4Ut7XcD2jOBtg2Lfy4xkSCqDEIZeb7L7Jt8IxuTx-G_IUk00WZPIT0mRmCzh9qqA/s1600/Imagen1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;"><br />
</a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAODrtsZtpQiJXDvbODHpn9pS_1KxEQei740BN1dAWOSBYo8x3re7lwXCvq6kXp-RuFQRPqleS4l4Ut7XcD2jOBtg2Lfy4xkSCqDEIZeb7L7Jt8IxuTx-G_IUk00WZPIT0mRmCzh9qqA/s1600/Imagen1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;"><br />
</a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAODrtsZtpQiJXDvbODHpn9pS_1KxEQei740BN1dAWOSBYo8x3re7lwXCvq6kXp-RuFQRPqleS4l4Ut7XcD2jOBtg2Lfy4xkSCqDEIZeb7L7Jt8IxuTx-G_IUk00WZPIT0mRmCzh9qqA/s1600/Imagen1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;"><br />
</a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAODrtsZtpQiJXDvbODHpn9pS_1KxEQei740BN1dAWOSBYo8x3re7lwXCvq6kXp-RuFQRPqleS4l4Ut7XcD2jOBtg2Lfy4xkSCqDEIZeb7L7Jt8IxuTx-G_IUk00WZPIT0mRmCzh9qqA/s1600/Imagen1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;"><br />
</a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAODrtsZtpQiJXDvbODHpn9pS_1KxEQei740BN1dAWOSBYo8x3re7lwXCvq6kXp-RuFQRPqleS4l4Ut7XcD2jOBtg2Lfy4xkSCqDEIZeb7L7Jt8IxuTx-G_IUk00WZPIT0mRmCzh9qqA/s1600/Imagen1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;"><br />
</a></div><div style="margin-left: 1em; margin-right: 1em; text-align: justify;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAODrtsZtpQiJXDvbODHpn9pS_1KxEQei740BN1dAWOSBYo8x3re7lwXCvq6kXp-RuFQRPqleS4l4Ut7XcD2jOBtg2Lfy4xkSCqDEIZeb7L7Jt8IxuTx-G_IUk00WZPIT0mRmCzh9qqA/s1600/Imagen1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span class="Apple-style-span" style="-webkit-text-decorations-in-effect: none; color: black;"></span></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAODrtsZtpQiJXDvbODHpn9pS_1KxEQei740BN1dAWOSBYo8x3re7lwXCvq6kXp-RuFQRPqleS4l4Ut7XcD2jOBtg2Lfy4xkSCqDEIZeb7L7Jt8IxuTx-G_IUk00WZPIT0mRmCzh9qqA/s1600/Imagen1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAODrtsZtpQiJXDvbODHpn9pS_1KxEQei740BN1dAWOSBYo8x3re7lwXCvq6kXp-RuFQRPqleS4l4Ut7XcD2jOBtg2Lfy4xkSCqDEIZeb7L7Jt8IxuTx-G_IUk00WZPIT0mRmCzh9qqA/s320/Imagen1.png" width="157" /></a></div><br />
<div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;">PSEUDOCODIGO</div><div class="separator" style="clear: both; text-align: justify;">INICIO</div><div class="separator" style="clear: both; text-align: justify;">mostrar:(' Digite horasl trabajadas')</div><div class="separator" style="clear: both; text-align: justify;">leer:horas</div><div class="separator" style="clear: both; text-align: justify;">mostrar:('Digite valor por hora')</div><div class="separator" style="clear: both; text-align: justify;">leer:valor_hora</div><div class="separator" style="clear: both; text-align: justify;">total=horas*valor_hora</div><div class="separator" style="clear: both; text-align: justify;">minuto=horas*60</div><div class="separator" style="clear: both; text-align: justify;">mostrar:('total a pagar es',total)</div><div class="separator" style="clear: both; text-align: justify;">mostar:('total minutos es ',minuto)</div><div class="separator" style="clear: both; text-align: justify;">FIN</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;">2=)Algoritmo que lea nombre de un trabajador cantidad de meses que trabajo al año y muestre el porcentaje de meses que trabajo</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid90tXue-dQySmV3QM1eQCAqcYtcw-YCN6zF4f5kh0JvRalzWkNIQhznmx_UxN_Qfj7ldUgat93bd7tV_I8oxHMiTRKvSUHhyPj-z9aY_WdFV8yuzKfLAcfz8NcYuFGuIrEymE5cngew/s1600/Imagen2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid90tXue-dQySmV3QM1eQCAqcYtcw-YCN6zF4f5kh0JvRalzWkNIQhznmx_UxN_Qfj7ldUgat93bd7tV_I8oxHMiTRKvSUHhyPj-z9aY_WdFV8yuzKfLAcfz8NcYuFGuIrEymE5cngew/s320/Imagen2.png" width="225" /></a></div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;">PSEUDOCODIGO</div><div class="separator" style="clear: both; text-align: justify;"></div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><br />
</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;">INICIO</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;">mostrar:(' Digite nombre del trabajador')</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;">leer:nombre</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;">mostrar:('Digite meses laborados')</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;">leer:meses</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;">porcentaje=meses*100/12</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;">mostrar:('el porcentaje de trabajo al año es',porcentaje)</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;">mostrar:('para el trabajador',nombre)</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;">FIN</div><div><div style="text-align: justify;"><br />
</div></div><div style="text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;">3=)En una tienda hay una maquina registradora en ella cada producto se le ingresa la cantidad de articulos valor producto y dependiendo del producto se le aplica descuento.Al total de la cuenta se le aplica IVA de 16. Realizar algoritmo que registre la venta y muestre total a pagar.</div><div class="separator" style="clear: both; text-align: justify;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbUNTqMfsJfyLbdUwe2GNAoix1YqfLry9Pb9nB6FmeHhvqk0rO0Y_j8iFsSknPSOpsrDI_vrHVmOhrNPVismU8H5yWGsyj0ClvEh2F7MBnTfemZIjzC_UH-3SXoSjw1WthJJqIPU5G7w/s1600/Imagen3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbUNTqMfsJfyLbdUwe2GNAoix1YqfLry9Pb9nB6FmeHhvqk0rO0Y_j8iFsSknPSOpsrDI_vrHVmOhrNPVismU8H5yWGsyj0ClvEh2F7MBnTfemZIjzC_UH-3SXoSjw1WthJJqIPU5G7w/s320/Imagen3.png" width="98" /></a></div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;">PSEUDOCODIGO</div><div class="separator" style="clear: both; text-align: justify;">INICIO</div><div class="separator" style="clear: both; text-align: justify;">mostrar:('Digite cantidad de articulos')</div><div class="separator" style="clear: both; text-align: justify;">leer:cantidad_producto</div><div class="separator" style="clear: both; text-align: justify;">mostrar:('Digite valor del producto')</div><div class="separator" style="clear: both; text-align: justify;">leer:valor_producto</div><div class="separator" style="clear: both; text-align: justify;">mostrar:('Digite el descuento en porcentaje')</div><div class="separator" style="clear: both; text-align: justify;">leer:valor_descuento</div><div class="separator" style="clear: both; text-align: justify;">totalb=cantidad_producto*valor_producto</div><div class="separator" style="clear: both; text-align: justify;">valor_descuento=total_valor*valor_descuento/100</div><div class="separator" style="clear: both; text-align: justify;">totalb=totalb-valor_descuento</div><div class="separator" style="clear: both; text-align: justify;">IVA=totalb*16/100</div><div class="separator" style="clear: both; text-align: justify;">total_pagar=totalb+IVA</div><div class="separator" style="clear: both; text-align: justify;">mostrar:('total a pagar es',total_pagar</div><div class="separator" style="clear: both; text-align: justify;">FIN</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"></span></div><div style="line-height: 18px;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">ESTO PARA QUE ME SIRVE?</span></div></div></div><div style="line-height: 18px;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div></div></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 18px;">Los algoritmos me sirven para poder dar una solución a los problemas ya sean cotidianos o de aplicación arimetica ,por medio de instrucciones bien definidas.</span></span></div></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;"><br />
</span></div></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;">¿EN UN PROBLEMA COTIDIANO COMO APLICO LO APRENDIDO?</span></div></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;"><br />
</span></div></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Las instrucciones de un algoritmo tiene en la vida opciones tales como decisión,para,mientras; que nos permite que podamos dar una solución ya que la vida es como un algoritmo que tiene pasos los cuales hay que ejecutarlos de tal forma que sean en orden y por tal motivo siempre tendremos opciones y es saber cual escoger para que todo nos salga bien.</span></div></div><div style="text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><br />
</div>Jonathan salgadohttp://www.blogger.com/profile/13474087081881697631noreply@blogger.com0tag:blogger.com,1999:blog-5741420562524783037.post-50294627340128626872011-03-24T18:26:00.000-07:002011-03-24T18:26:58.461-07:00INTRODUCCIÓN A LOS ALGORITMOS<div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 19px;">Es un conjunto prescrito de instrucciones o reglas bien definidas, ordenadas y finitas que permite realizar una actividad mediante pasos sucesivos que no generen dudas a quien deba realizar dicha actividad.Dados un estado inicial y una entrada, siguiendo los pasos sucesivos se llega a un estado final y se obtiene una solución. Los algoritmos son el objeto de estudio de la </span><span style="line-height: 19px;">algoritmia</span><span class="Apple-style-span" style="line-height: 19px;">.</span></span></div><div class="separator" style="clear: both; text-align: justify;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg48T9sjI8WzphquSmkvVUGmZ68LgJhXaXl6dcVOvGOOIejV9iajTcJBVqhbLx2pvrdMWcQyIr2ANcunB5vlPsITO3zJpgff_O7c88g-Aj-xtnMz8lQ0CNgW6bfUgGf7RzrHY-VwRVSUQ/s1600/324px-LampFlowchart-es.svg.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg48T9sjI8WzphquSmkvVUGmZ68LgJhXaXl6dcVOvGOOIejV9iajTcJBVqhbLx2pvrdMWcQyIr2ANcunB5vlPsITO3zJpgff_O7c88g-Aj-xtnMz8lQ0CNgW6bfUgGf7RzrHY-VwRVSUQ/s320/324px-LampFlowchart-es.svg.png" width="234" /></span></a></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">MEDIOS DE EXPRESIÓN DE UN ALGORITMO</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 19px;"></span></span></div><h3 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0.17em; padding-top: 0.5em; text-align: justify; width: auto;"><span class="Apple-style-span" style="font-weight: normal; line-height: 19px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><div class="noprint AP" style="margin-bottom: 0.2ex; margin-left: 1em; margin-right: 0px; margin-top: 0px;">DIAGRAMA DE FLUJO</div><div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;">Los diagramas de flujo son descripciones gráficas de algoritmos; usan símbolos conectados con flechas para indicar la secuencia de instrucciones y están regidos por ISO.</div><div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;">Los diagramas de flujo son usados para representar algoritmos pequeños, ya que abarcan mucho espacio y su construcción es laboriosa. Por su facilidad de lectura son usados como introducción a los algoritmos, descripción de un lenguaje y descripción de procesos a personas ajenas a la computación.</div></span></span></h3><div class="noprint AP" style="margin-bottom: 0.2ex; margin-left: 1em; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><h3 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0.17em; padding-top: 0.5em; text-align: justify; width: auto;"><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="font-size: small;">PSEUDOCODIGO</span></span></h3><div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em; text-align: justify;">El pseudocódigo (falso lenguaje, el prefijo pseudo significa falso) es una descripción de alto nivel de un algoritmo que emplea una mezcla de lenguaje natural con algunas convenciones sintácticas propias de lenguajes de programación, como asignaciones, ciclos y condicionales, aunque no está regido por ningún estándar. Es utilizado para describir algoritmos en libros y publicaciones científicas, y como producto intermedio durante el desarrollo de un algoritmo, como los diagrama de flujo aunque presentan una ventaja importante sobre estos, y es que los algoritmos descritos en pseudocódigo requieren menos espacio para representar instrucciones complejas.</div><div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em; text-align: justify;">El pseudocódigo está pensado para facilitar a las personas el entendimiento de un algoritmo, y por lo tanto puede omitir detalles irrelevantes que son necesarios en una implementación. Programadores diferentes suelen utilizar convenciones distintas, que pueden estar basadas en la sintaxis de lenguajes de programación concretos. Sin embargo, el pseudocódigo, en general, es comprensible sin necesidad de conocer o utilizar un entorno de programación específico, y es a la vez suficientemente estructurado para que su implementación se pueda hacer directamente a partir de él.</div></span></span><span class="Apple-style-span" style="font-size: 11px;"><i><br />
</i></span></div><br />
<div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><br />
</div>Jonathan salgadohttp://www.blogger.com/profile/13474087081881697631noreply@blogger.com0