1 / 3

Algoritmo

Ejercicio 6 ¿Cuánto debe pagar cada comensal de un grupo en un restaurante considerando el monto del consumo y la propina? Para cualquier número de personas y la propina puede ser de 10 o 15%. Algoritmo

aurek
Télécharger la présentation

Algoritmo

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ejercicio 6¿Cuánto debe pagar cada comensal de un grupo en un restaurante considerando el monto del consumo y la propina? Para cualquier número de personas y la propina puede ser de 10 o 15%. • Algoritmo 1. Inicio2. Leer Total3. Leer TCOMENS4. Leer Propina5. Pago = (Total * (1 + Propina /100) / TCOMENS6. Desplegar Pago7. Fin

  2. Ejercicio 7Suma de tres números consecutivos • Algoritmo 1. Inicio2. Suma = 03. Leer Num4. Suma = Num + (Num+1) + (Num+2)5. Desplegar Suma6. Fin • Diagrama de Flujo Solución

  3. EJERCICIO EN EQUIPOS • Algoritmo • 1. INICIO2. LEER NUM3. DESPLEGAR “PARA PULGADAS A CM PRESIONE P, PARA LIBRAS A KG PRESIONE L, PARA GALONES A LT PRESIONE G”4. LEER RESP5. SI RESP = P, ENTONCES    CONV = NUM * 2.54    IR AL PASO 106. SI RESP = L, ENTONCES    CONV = NUM * .453    IR AL PASO 107. SI RESP = G, ENTONCES    CONV = NUM * 3.785    IR AL PASO 108. DESPLEGAR “ERROR EN LA RESPUESTA”9. IR AL PASO 410. DESPLEGAR NUM11. FIN

More Related