Está en la página 1de 5

PROYECTO

EXPOSICION: 10
FUNCIONALIDAD DEL PROYECTO
(CUALQUIER LENGUAJE DE
PROGRAMACION): 20
DOCUMENTO: 10

Subir a la plataforma:
 DOCUMENTO INFORME EN FORMATO WORD
 EL ARCHIVO COMPRIMIDO DE SU PROYECTO EN SU VERSION
FINAL.
 EXPONER SU TRABAJO CON LA PARTICIPACION DE TODOS LOS
INTEGRANTES DEL GRUPO (PRESENTACION, DESARROLLO Y
CONCLUSIONES y RECOMENDACIONES).
CARATULA
INDICE
DEDICATORIA

I: ANTECEDENTES
I.1.- TEMA QUE LES TOCO
BLA, BLA, BLA (1 o 2 PAGINA)
I.2.- LISTA DE REQUERIMIENTOS
SORTEO.

II: MARCO TEORICO


II.1.- INTRODUCCION A LAS MATEMATICAS DISCRETAS.
II.2.- LOGICA MATEMATICA.
II.3.- INDUCCION y RECURSION.
II.4.- RELACIONES.
II.5.- TEORIA DE CONJUNTOS.
III: DESARROLLO
III.1.- CAPTURAR PANTALLAS

III.2.- CODIGO DETRÁS DE ESAS PANTALLAS


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Programa_Recursivo
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void BtnMostrar_Click(object sender, EventArgs


e)
{
Salida1.Items.Clear();
Mostrar(Tope.Value);
}

private void Mostrar(decimal Tope)


{
if(Tope >= 0)
{
Salida1.Items.Add(Tope);
Mostrar(Tope - 1);
}
}

private void BtnPares_Click(object sender, EventArgs e)


{
Salida2.Items.Clear();
MostrarPares(0,Tope.Value);
}

private void MostrarPares(decimal Par,decimal Tope)


{
if(Par <= Tope)
{
Salida2.Items.Add(Par);
MostrarPares(Par + 2, Tope);
}
}

private void BtnFactorial_Click(object sender, EventArgs


e)
{
decimal Resultado = Factorial(Tope.Value);
//Llamamos a la funcion Factorial, pasandole el tope introducido
por el usuario.
Salida3.Text = Resultado.ToString(); //Estamos
mostrando en el label, el contenido de la variable Resultado.
}
private decimal Factorial(decimal Fact)
{
//Tope = 5, 1 x 2 x 3 x 4 x 5
//5! = 5 * 4!
//4! = 4 * 3!
//3! = 3 * 2!
//2! = 2 * 1!
//1! = 1 * 0!
//0! = 1
if(Fact > 0)
{
decimal Resul = Fact * Factorial(Fact - 1);
return Resul;
}
else
{
return 1;
}

}
}
}

CONCLUSIONES

RECOMENDACIONES

BIBLIOGRAFIA

También podría gustarte