programación modular
TRANSCRIPT
![Page 1: Programación modular](https://reader036.vdocuments.pub/reader036/viewer/2022070519/58ed6b291a28abdf138b4723/html5/thumbnails/1.jpg)
“UNIVERSIDAD SANTO DOMINGO DE GUZMAN”
FACULTAD DE INGENIERÍA DE SISTEMAS
CURSO: PROGRAMACIÓN I
TEMA: PROGRAMACIÓN MODULAR INTEGRANTE:
CRISTIAN QUINTEROS H. DOCENTE: ELVI BAZALAR
CICLO: III
2015
![Page 2: Programación modular](https://reader036.vdocuments.pub/reader036/viewer/2022070519/58ed6b291a28abdf138b4723/html5/thumbnails/2.jpg)
¿QUÉ ES PROGRAMACIÓN MODULAR?
La programación modular es un paradigma de programación que consiste en dividir un programa en módulos o subprogramas con el fin de hacerlo más legible y manejable.A esta técnica se le conoce como divide y vencerás. Estos pequeños módulos se les conoce como funciones o procedimientos.
![Page 3: Programación modular](https://reader036.vdocuments.pub/reader036/viewer/2022070519/58ed6b291a28abdf138b4723/html5/thumbnails/3.jpg)
¿QUÉ ES UNA FUNCIÓN?
Es un subprograma que realiza una tarea específica que puede o no recibir valores (parámetros), además puede o no devolver algún valor (return).
¿CÓMO LLAMAR A UNA FUNCIÓN?
Para ejecutarlo, basta con escribir su nombre en el cuerpo de otro procedimiento o en el programa principal. Seguidamente escribimos un par de paréntesis ( ) si trabajamos sin parámetros, y si trabajamos con parámetros debemos de incluirlos dentro de los paréntesis ( ByVal ).
![Page 4: Programación modular](https://reader036.vdocuments.pub/reader036/viewer/2022070519/58ed6b291a28abdf138b4723/html5/thumbnails/4.jpg)
EJEMPLOS DE FUNCIONES SIN PARAMETROS
![Page 5: Programación modular](https://reader036.vdocuments.pub/reader036/viewer/2022070519/58ed6b291a28abdf138b4723/html5/thumbnails/5.jpg)
![Page 6: Programación modular](https://reader036.vdocuments.pub/reader036/viewer/2022070519/58ed6b291a28abdf138b4723/html5/thumbnails/6.jpg)
OTROS EJEMPLOS (FUNCIONES CON PROCEDIMIENTOS):
![Page 7: Programación modular](https://reader036.vdocuments.pub/reader036/viewer/2022070519/58ed6b291a28abdf138b4723/html5/thumbnails/7.jpg)
![Page 8: Programación modular](https://reader036.vdocuments.pub/reader036/viewer/2022070519/58ed6b291a28abdf138b4723/html5/thumbnails/8.jpg)
EJEMPLOS DE FUNCIONES CON PARAMETROS
![Page 9: Programación modular](https://reader036.vdocuments.pub/reader036/viewer/2022070519/58ed6b291a28abdf138b4723/html5/thumbnails/9.jpg)
![Page 10: Programación modular](https://reader036.vdocuments.pub/reader036/viewer/2022070519/58ed6b291a28abdf138b4723/html5/thumbnails/10.jpg)
¡GRACIAS POR SU
ATENCIÓN!