jueves, 16 de agosto de 2012

Part2 13 EJERCICIOS MAS (modo formulario)


ejercicio 01

 public partial class frmhallarlasumadedosnumeroscomplejos : Form
    {
        public frmhallarlasumadedosnumeroscomplejos()
        {
            InitializeComponent();
        }

        private void btncalcular_Click(object sender, EventArgs e)
        {
            //declarar variables
            int nro1real,nro2real,nro1imaginario,nro2imaginario;
            int sumareal, sumaimaginario;
            //leer datos
            nro1real = int.Parse(txtnro1real.Text);
            nro2real = int.Parse(txtnro2real.Text);
            nro1imaginario = int.Parse(txtnro1imaginario.Text);
            nro2imaginario = int.Parse(txtnro2imaginario.Text);
            //procesos
            sumareal = nro1real + nro2real;
            sumaimaginario = nro1imaginario + nro2imaginario;
            //escribir resultados
            txtsumareal.Text = sumareal.ToString();
            txtsumaimaginario.Text = sumaimaginario.ToString();
        }

        private void btnsalir_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void btnnuevo_Click(object sender, EventArgs e)
        {
            txtnro1real.Text = string.Empty;
            txtnro2real.Text = string.Empty;
            txtnro1imaginario.Text = string.Empty;
            txtnro2imaginario.Text = string.Empty;
            txtsumareal.Text = string.Empty;
            txtsumaimaginario.Text = string.Empty;
            txtnro1real.Focus();


http://www.4shared.com/rar/8srTWIMs/slnHEjercicios01.html

ejercio 02


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

        private void btncalcular_Click(object sender, EventArgs e)
        {

            //declarar variables
            double gradoscelcius, gradosFahrenheit;
            //leer datos
            gradoscelcius = double.Parse(txtgradoscelcius.Text);
            //procesos
            gradosFahrenheit = 1.8 * gradoscelcius + 32;
            //escribir resultados
            txtgradosFahrenheit.Text = gradosFahrenheit.ToString();
        }

        private void btnnuevo_Click(object sender, EventArgs e)
        {
            txtgradoscelcius.Text = string.Empty;
            txtgradosFahrenheit.Text = string.Empty;
            txtgradoscelcius.Focus();
        }

        private void btnsalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/cgr4Qsjr/slnHEjercicios02.html


ejercicio 03


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

        private void btncalcular_Click(object sender, EventArgs e)
        {
            //declarar variable
            int P1, P2, PR, PF,suma;
            //leer datos
            P1 = int.Parse(txtP1.Text);
            P2 = int.Parse(txtP2.Text);
            PR = int.Parse(txtPR.Text);
            //procesos
            suma = 2 * P1 + 2 * P2 + PR;
            PF = suma / 5;
            //escribir resultados
            txtPF.Text = PF.ToString();
        }

        private void btnnuevo_Click(object sender, EventArgs e)
        {
            txtP1.Text = string.Empty;
            txtP2.Text = string.Empty;
            txtPR.Text = string.Empty;
            txtPF.Text = string.Empty;
            txtP1.Focus();
        }

        private void btnsalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/NSJqqxVA/slnHEjercicios03.html


ejercicio 04


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

        private void btncalcular_Click(object sender, EventArgs e)
        {
            //declarar variables
            int E, VT, VL;
             int  T;
            //leer datos
            E = int.Parse(txtE.Text);
            VT = int.Parse(txtVT.Text);
            VL = int.Parse(txtVL.Text);
            //procesos

           T=E/  (VT - VL);
         
            //escribir resultados
            txtT.Text = T.ToString();
        }

http://www.4shared.com/rar/GWjoTS-X/slnHEjercicios04.html


ejercicio 05


public partial class frmsumadelosnprimerosnumerospares : Form
    {
        public frmsumadelosnprimerosnumerospares()
        {
            InitializeComponent();
        }

        private void btncalcular_Click(object sender, EventArgs e)
        {
            //declarar variables
            int suma, numero;
            //leer datos
            numero = int.Parse(txtnumero.Text);
            //procesos
            suma = numero * numero + 1;
            //escribir resultados
            txtsuma.Text = suma.ToString();
        }

        private void btnnuevo_Click(object sender, EventArgs e)
        {
            txtnumero.Text = string.Empty;
            txtsuma.Text = string.Empty;
            txtnumero.Focus();
        }

        private void btnsalir_Click(object sender, EventArgs e)
        {
            Close();
        }


http://www.4shared.com/rar/AoLhIhnF/slnHEjercicios05.html


ejercicio 06

public partial class frmsumadelosnprimerosnumerosimpares : Form
    {
        public frmsumadelosnprimerosnumerosimpares()
        {
            InitializeComponent();
        }

        private void btncalcular_Click(object sender, EventArgs e)
        {
            //declarar variables
            int suma, numero;
            //leer datos
            numero = int.Parse(txtnumero.Text);
            //procesos
            suma = numero * numero;
            //escribir resultados
            txtsuma.Text = suma.ToString();
        }

        private void btnnuevo_Click(object sender, EventArgs e)
        {
            txtnumero.Text = string.Empty;
            txtsuma.Text = string.Empty;
            txtnumero.Focus();
        }

        private void btnsalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/FifYEVhE/slnHEjercicios06.html


ejercicio 07


public partial class frmejercicio07 : Form
    {
        public frmejercicio07()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //Ingresar variables
            int Soc1, Soc2, Ganancia;
            double Aporte, Por1, Por2, GananSoc1, GananSoc2;
            //Leer Datos
            Soc1 = int.Parse(txtSoc1.Text);
            Soc2 = int.Parse(txtSoc2.Text);
            Ganancia = int.Parse(txtGanancia.Text);
            //Procesos
            Aporte = Soc1 + Soc2;
            Por1 = (Soc1 * 100) / Aporte;
            Por2 = (Soc2 * 100) / Aporte;
            GananSoc1 = (Ganancia * Por1) / 100;
            GananSoc2 = (Ganancia * Por2) / 100;
            //Escribir resultado
            txtGananSoc1.Text = GananSoc1.ToString();
            txtGananSoc2.Text = GananSoc2.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtGanancia.Text = string.Empty;
            txtGananSoc1.Text = string.Empty;
            txtGananSoc2.Text = string.Empty;
            txtSoc1.Text = string.Empty;
            txtSoc2.Text = string.Empty;
            txtSoc1.Focus();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/Bm0HmRJz/slnEjercicicio7.html


ejercicio 08


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

        private void btncalcular_Click(object sender, EventArgs e)
        {
            //variables
            double utilidad;
            double HA, HB, HC;
            //leer datos
            utilidad = int.Parse(txtutilidad.Text);
            //procesos
            HA = 0.5 * utilidad;
            HB = 0.3 * utilidad;
            HC = 0.2 * utilidad;
            //resultados
            txtHA.Text = HA.ToString();
            txtHC.Text = HB.ToString();
            txtHB.Text = HC.ToString();

        }

        private void btnnuevo_Click(object sender, EventArgs e)
        {
            txtHA.Text = string.Empty;
            txtHB.Text = string.Empty;
            txtHC.Text = string.Empty;
            txtutilidad.Text = string.Empty;
            txtutilidad.Focus();
        }

        private void txtsalir_Click(object sender, EventArgs e)
        {
            Close();
        }


http://www.4shared.com/rar/u_BwgXa4/slnHEjercicios08.html


ejercicio 09


public partial class frmEjercicio09 : Form
    {
        public frmEjercicio09()
        {
            InitializeComponent();
        }

        private void lblCalcular_Click(object sender, EventArgs e)
        {
            //variables
            int monto;
            double pediatria, odontologia, traumatologia, laboratorio, rehabilitacion;
            //datos
            monto = int.Parse(txtmonto.Text);
            //procesos
            pediatria = 0.4 * monto;
            odontologia = 0.3 * monto;
            traumatologia = 0.15 * monto;
            laboratorio = 0.1 * monto;
            rehabilitacion = 0.05 * monto;
            //resultados
            txtpediatra.Text = pediatria.ToString();
            txtodontologia.Text = odontologia.ToString();
            txttraumatologia.Text = traumatologia.ToString();
            txtlaboratorio.Text = laboratorio.ToString();
            txtrehabilitacion.Text = rehabilitacion.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtlaboratorio.Text = string.Empty;
            txtmonto.Text = string.Empty;
            txtodontologia.Text = string.Empty;
            txtpediatra.Text = string.Empty;
            txtrehabilitacion.Text = string.Empty;
            txttraumatologia.Text = string.Empty;
            txtmonto.Focus();
        }

        private void lblSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/X6g-XV6I/slnHEjercicios09.html


ejercicio 11



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

        private void btncalcular_Click(object sender, EventArgs e)
        {
            //variables
            int HH, MM, SS, HF, MF, SF,TSS;
            //leer datos
            HH = int.Parse(txtHH.Text);
            MM = int.Parse(txtMM.Text);
            SS = int.Parse(txtSS.Text);
            //procesos
            TSS = HH * 3600 + MM * 60 + SS - 1;
            HF = TSS / 3600;
            MF = (TSS / 3600) % 60;
            SF = (TSS % 3600) % 60;
            //resultados
            txtHF.Text = HF.ToString();
            txtMF.Text = MF.ToString();
            txtSF.Text = SF.ToString();

        }

        private void btnsalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/ZdCk-Wn2/slnHEjercicios11.html


ejercicios 12


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

        private void btncalcular_Click(object sender, EventArgs e)
        {
            //variables
            int HH, MM, SS, HF, MF,SF;
            int TS1, TS2, TSF;
            //leer datos
            HH = int.Parse(txtHH.Text);
            MM = int.Parse(txtMM.Text);
            SS = int.Parse(txtSS.Text);
            HF = int.Parse(txtHF.Text);
            MF = int.Parse(txtMF.Text);
            SF = int.Parse(txtSF.Text);
            // procesos
            TS1 = HH * 3600 + MM * 60 + SS;
            TS2 = HH * 3600 + MM * 60 + SS;
            TSF = TS1 + TS2;
            //resultados
            txtTSF.Text = TSF.ToString();
        }

        private void btnnuevo_Click(object sender, EventArgs e)
        {
            txtHH.Text = string.Empty;
            txtMM.Text = string.Empty;
            txtSS.Text = string.Empty;
            txtHF.Text = string.Empty;
            txtMF.Text = string.Empty;
            txtSF.Text = string.Empty;
            txtTSF.Text = string.Empty;
            txtHH.Focus();
        }

        private void btnsalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/a43f5R8K/slnHEjercicios12.html


ejercicio 13


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

        private void btncalcular_Click(object sender, EventArgs e)
        {
            //variables
            int cantidaddelibro, nrodocena;
            double montoapagar, costolibro;
            //datos
            nrodocena = int.Parse(txtnrodocena.Text);
            costolibro = int.Parse(txtcostolibro.Text);
            //procesos
            cantidaddelibro = (nrodocena * 12 + nrodocena);
            montoapagar = (nrodocena * 12 * costolibro) - 2 % (nrodocena * 12 * costolibro);
            //resultados
            txtcantidaddelibro.Text = cantidaddelibro.ToString();
            txtmontoapagar.Text = montoapagar.ToString();

        }

        private void lblnuevo_Click(object sender, EventArgs e)
        {
            txtnrodocena.Text = string.Empty;
            txtcostolibro.Text = string.Empty;
            txtcantidaddelibro.Text = string.Empty;
            txtmontoapagar.Text = string.Empty;
            txtnrodocena.Focus();
        }

        private void btnsalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/axjSnm2P/slnHEjercicios13.html




Part1 13 EJERCICIOS MAS ( modo console)


ejercicio 01


 static void Main(string[] args)
        {
           //encabezado
            Console.WriteLine("HALLAR LA SUMA DE DOS NUMEROS COMPLEJOS");
            Console.WriteLine("======================================");
            //declarar variables
            int nro1real, nro2real, nro1imaginario, nro2imaginario;
            int sumareal, sumaimaginaria;
            //leer datos
            nro1real = int.Parse(Console.ReadLine());
            nro2real = int.Parse(Console.ReadLine());
            nro1imaginario = int.Parse(Console.ReadLine());
            nro2imaginario = int.Parse(Console.ReadLine());
            //procesos
            sumareal = nro1real + nro2real;
            sumaimaginaria = nro1imaginario + nro2imaginario;
            //escribir resultados
            Console.WriteLine("la suma real es:" + sumareal);
            Console.WriteLine("la suma imaginaria es:" + sumaimaginaria);
            Console.ReadKey();


http://www.4shared.com/rar/NeOQm3Lz/slnEjercicios01.html

ejercicio 02


 static void Main(string[] args)
        {
            //encabezado
            Console.WriteLine("HALLAR UN ALGORITMO convierta temperaturas de grados Celsius a grados Fahrenheit");
            Console.WriteLine("===============================================================================");
            //declarar variables
            double gradoscelcius, gradosFahrenheit;
            //leer datos
            Console.WriteLine("la temperatura en grados Celsius es:");
            gradoscelcius = double.Parse(Console.ReadLine());
            //procesos
            gradosFahrenheit=1.8*gradoscelcius+32;
            //escribir resultados
            Console.WriteLine("el resultados en grados Fahrenheit es:"+gradosFahrenheit);
            Console.ReadKey();


http://www.4shared.com/rar/tMWZtjy7/slnEjercicios02.html

ejercicio 03


static void Main(string[] args)
        {
            //encabezado
            Console.WriteLine("calcular el promedio final");
            Console.WriteLine("::::::::::::::::::::::::::");
            //declarar variables
            int PA1, PA2, PR,suma;
            double PF;
            //leer datos
            Console.WriteLine("el 1°examen parcial");
            PA1 = int.Parse(Console.ReadLine());
            Console.WriteLine("el 2°examen parcial");
            PA2 = int.Parse(Console.ReadLine());
            Console.WriteLine("la practica");
            PR = int.Parse(Console.ReadLine());
            //procesos
            suma = 2 * PA1+ 2 * PA2 + PR ;
            PF = suma / 5;
            //escribir resultados
            Console.WriteLine("el promedio final es :"+PF);
            Console.ReadKey();


http://www.4shared.com/rar/WDlqbm_M/slnEjercicios03.html

ejercicio 04

 static void Main(string[] args)
        {
            //encabezado
            Console.WriteLine(" Determine en cuantos segundos la liebre estará 3000 metros delante de la tortuga");
            Console.WriteLine("==================================================================================");
            //declarar variables
            int T, VL, VT, E;
            //leer datos
            Console.WriteLine("el espacio es:");
            E = int.Parse(Console.ReadLine());
            Console.WriteLine("velocidad de la liebre es:");
            VL = int.Parse(Console.ReadLine());
            Console.WriteLine("la velocidad de la tortuga es:");
            VT = int.Parse(Console.ReadLine());
            //procesos
            T = E/(VL - VT);
            //escribir resultados
            Console.WriteLine("el tiempo en segundos es:" + T);
            Console.ReadKey();


http://www.4shared.com/rar/KW2G2Adu/slnEjercicios04.html

ejercicio 05


static void Main(string[] args)
        {
           //encabezado
            Console.WriteLine("suma de la n-primeros números pares");
            Console.WriteLine("==================================");
            //declarar variables
            int numero, suma;
            //leer datos
            Console.WriteLine("el numero es:");
            numero = int.Parse(Console.ReadLine());
            //procesos
            suma = numero * numero + 1;
            //escribir resultados
            Console.WriteLine("la suma es:" + suma);

            Console.ReadKey();


http://www.4shared.com/rar/Lmtk8XTf/slnEjercicios05.html


ejercicio 06


static void Main(string[] args)
        {
            //encabezado
            Console.WriteLine("suma de los n-primeros números impares");
            Console.WriteLine("_______________________________________");
            //declarar variables
            int suma, numero;
            //leer datos
            Console.WriteLine("el numero es:");
            numero = int.Parse(Console.ReadLine());
            //procesos
            suma = numero * numero;
            //escribir resultados
            Console.WriteLine("La suma es:"+suma);
            Console.ReadKey();


http://www.4shared.com/rar/QSJTeMMh/slnEjercicios06.html

ejercicio 07


static void Main(string[] args)
        {
            //encabezado
            Console.WriteLine("cuanto corresponde a cada socio, proporcional a su aporte");
            Console.WriteLine(":::::::::::::::::::::::::::::::::::::::::::::::::::::::::");
            //declarar variables
            int aporteS1, aporteS2, venta;
            double recibeS1, recibeS2;
            //leer datos
            Console.WriteLine("la venta es:");
            venta = int.Parse(Console.ReadLine());
            Console.WriteLine("aporteS1 es:");
            aporteS1 = int.Parse(Console.ReadLine());
            Console.WriteLine("aporteS2 es:");
            aporteS2 = int.Parse(Console.ReadLine());
            //procesos
            recibeS1 = venta*aporteS1;
            //Escribir resultados
            Console.WriteLine(recibeS1);
            Console.ReadKey();


http://www.4shared.com/rar/lXgL0EKt/slnEjercicios07.html

ejercicio 08

static void Main(string[] args)
        {
            //declarar varibles
            int utilidad;
            double HA, HB, HC;
            //leer datos
            Console.WriteLine("la utilidad es:");
            utilidad = int.Parse(Console.ReadLine());
            //procesos
            HA = 0.5 * utilidad;
            HB = 0.3 * utilidad;
            HC = 0.2 * utilidad;
            //resultados
         
            Console.WriteLine("LECORRESPONDE AL HA:"+HA);
            Console.WriteLine("LE CORRESPONDE AL HB:"+HB);
            Console.WriteLine("LE CORRESPONDE AL HC:"+HC);
            Console.ReadKey();


http://www.4shared.com/rar/a4vbMIlq/slnEjercicios08.html

ejercicio 09

 static void Main(string[] args)
        {
            //declarar variables
            int monto;
            double pediatria, odontologia, traumatologia, laboratorio, rehabilitacion;
            //leer datos
            Console.WriteLine("el monto es:");
            monto = int.Parse(Console.ReadLine());
            //procesos
            pediatria = 0.4*monto;
            odontologia = 0.3*monto;
            traumatologia = 0.15*monto;
            laboratorio = 0.1 * monto;
            rehabilitacion = 0.05 * monto;
            //resultados
            Console.WriteLine("pediatria:"+pediatria);
            Console.WriteLine("odontologia:"+odontologia);
            Console.WriteLine("traumatologia:"+traumatologia);
            Console.WriteLine("laboratorio:"+laboratorio);
            Console.WriteLine("rehabilitacion:"+rehabilitacion);
            Console.ReadKey();


http://www.4shared.com/rar/K7Mu2wau/slnEjercicios09.html

ejercicio 11

 static void Main(string[] args)
        {
            //variables
            int HH, MM, SS;
            int HF, MF, SF;
            int TSS;
            //datos
            Console.WriteLine("la hora es:");
            HH=int.Parse(Console.ReadLine());
            Console.WriteLine("el minuto es:");
            MM=int.Parse(Console.ReadLine());
            Console.WriteLine("el segundo es:");
            SS = int.Parse(Console.ReadLine());
            //procesos
            TSS = HH * 3600 + MM * 60 + SS - 1;
            HF = TSS / 3600;
            MF = (TSS / 3600) % 60;
            SF = (TSS % 360) % 60;
            //Resultados
            Console.WriteLine("LA HORA FINAL ES:"+HF);
            Console.WriteLine("EL MINUTO FINAL ES:"+MF);
            Console.WriteLine("EL SEGINDO FINAL ES:"+SF);
            Console.ReadKey();


http://www.4shared.com/rar/XDyooZoA/slnEjercicios11.html

ejercicios 12


static void Main(string[] args)
        {
            //variables
            int TS1, TS2,TSF;
            int HH,MM,SS;
            int HF, MF, SF;
            //leer datos
            HH = int.Parse(Console.ReadLine());
            MM = int.Parse(Console.ReadLine());
            SS = int.Parse(Console.ReadLine());
            HF = int.Parse(Console.ReadLine());
            MF = int.Parse(Console.ReadLine());
            SF = int.Parse(Console.ReadLine());
            //procesos
            TS1 = HH * 3600 + MM * 60 + SS;
            TS2 = HH * 3600 + MM * 60 + SS;
            TSF = TS1 + TS2;
            //resultados
            Console.WriteLine(TSF);
            Console.ReadKey();


http://www.4shared.com/rar/GkQ5ONPG/slnEjercicios12.html

ejercicio 13


static void Main(string[] args)
        {
            //variables
            int cantidadlibro, nrodocena;
            double montoapagar, costolibro;
            //leer datos
            Console.WriteLine("docenas:");
            nrodocena = int.Parse(Console.ReadLine());
            Console.WriteLine("costolibro:");
            costolibro = double.Parse(Console.ReadLine());
            //procesos
            cantidadlibro = (nrodocena * 12 + nrodocena);
            montoapagar = (nrodocena * 12 * costolibro) -2%(nrodocena * 12 * costolibro);
            //resultados
            Console.WriteLine("cantidadlibro:"+cantidadlibro);
            Console.WriteLine("montoapagar:"+montoapagar);
            Console.ReadKey();

http://www.4shared.com/rar/vZmWsmhR/slnEjercicios13.html


DESARROLLO DE ALGORITMOS EN MODO (FORMULARIO)

LIEBRE TORTUGA 1



public partial class frmLiebreyTortuga1 : Form
    {
        public frmLiebreyTortuga1()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //Declarar Variables
            int VL, VT, E, T;
            //Leer Datos
            VL = int.Parse(txtVL.Text);
            VT = int.Parse(txtVT.Text);
            T = int.Parse(txtTiempo.Text);
            //Procesos
            E = (VL - VT) * T;
            txtSeparacion.Text = E.ToString();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtSeparacion.Text = string.Empty;
            txtTiempo.Text = string.Empty;
            txtVL.Text = string.Empty;
            txtVT.Text = string.Empty;

        }

http://www.4shared.com/rar/ah7cPm8W/slnHLiebreTortuga1.html

APROBADO DESAPROBADO


public partial class frmSumaNNumerosImpares : Form
    {
        public frmSumaNNumerosImpares()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //declarar variables
            int Nt1, Nt2;
            double Promedio;
            string Observacion;
            //leer datos
            Nt1 = int.Parse(txtNota1.Text);
            Nt2 = int.Parse(txtNota2.Text);
            //Procesos
            Promedio = (Nt1 + Nt2) / 2;
            if (Promedio > 10)
            {
                Observacion = "Aprobado";
            }
            else
            {
                Observacion = "Desaprobado";
            }
            //escribir resultado
            txtPromedio.Text = Promedio.ToString();
            txtObservacion.Text = Observacion.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtNota1.Text = string.Empty;
            txtNota2.Text = string.Empty;
            txtObservacion.Text = string.Empty;
            txtPromedio.Text = string.Empty;
            txtNota1.Focus();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/gLpgSbTb/slnHPAprobadoDesaprobado.html


ÁREA DEL CUADRADO


public partial class frmAreaCuadrado : Form
    {
        public frmAreaCuadrado()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //declarar variables
            int Lado, Area;
            //Leer Datos
            Lado = int.Parse(txtLado.Text);
            //procesos
            Area = Lado * Lado;
            //Escribir Resultado
            txtArea.Text = Area.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtArea.Text = string.Empty;
            txtLado.Text = string.Empty;
            txtLado.Focus();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/4MQ1t4yR/slnHPAreaCuadrado.html


ÁREA DEL RECTANGULO


public partial class frmAreaRectangulo : Form
    {
        public frmAreaRectangulo()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //declarar Variables
            int Base, Altura, Area;
            //Leer datos
            Base = int.Parse(txtBase.Text);
            Altura = int.Parse(txtAltura.Text);
            //procesos
            Area = Base * Altura;
            //escribir resultado
            txtArea.Text = Area.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtAltura.Text = string.Empty;
            txtArea.Text = string.Empty;
            txtBase.Text = string.Empty;
            txtBase.Focus();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/QwxTD32D/slnHPAreaRectangulo.html


ÁREA Y PERIMETRO



public partial class frmAreayPerimetro : Form
    {
        public frmAreayPerimetro()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //declarar variables
            int altura, b, area, perimetro;
            //leer datos
            altura = int.Parse(txtAltura.Text);
            b = int.Parse(txtBase.Text);
            //procesos
            area = altura * b;
            perimetro = (b + altura) * 2;
            //escribir resultados
            txtArea.Text = area.ToString();
            txtPerimetro.Text = perimetro.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtAltura.Text = string.Empty;
            txtArea.Text = string.Empty;
            txtBase.Text = string.Empty;
            txtPerimetro.Text = string.Empty;
            txtBase.Focus();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/pEw4mJPz/slnHPAreayPerimetro.html


BILLETES Y MONEDAS


 public partial class frmBilletesyMonedas : Form
    {
        public frmBilletesyMonedas()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //Declarar variables
            int Cantidad, B200, B100, B50, B20, B10, M5, M2, M1;
            //Leer Datos
            Cantidad = int.Parse(txtCantidad.Text);
            //Procesos
            B200 = Cantidad / 200;
            Cantidad = Cantidad % 200;
            B100 = Cantidad / 100;
            Cantidad = Cantidad % 100;
            B50 = Cantidad / 50;
            Cantidad = Cantidad % 50;
            B20 = Cantidad / 20;
            Cantidad = Cantidad % 20;
            B10 = Cantidad / 10;
            Cantidad = Cantidad % 10;
            M5 = Cantidad / 5;
            Cantidad = Cantidad % 5;
            M2 = Cantidad / 2;
            Cantidad = Cantidad % 2;
            M1 = Cantidad / 1;
            Cantidad = Cantidad % 1;
            //Escribir Resultados
            txtB200.Text = B200.ToString();
            txtB100.Text = B100.ToString();
            txtB100.Text = B100.ToString();
            txtB50.Text = B50.ToString();
            txtB20.Text = B20.ToString();
            txtB10.Text = B10.ToString();
            txtM5.Text = M5.ToString();
            txtM2.Text = M2.ToString();
            txtM1.Text = M1.ToString();
        }

     

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
   
            txtB200.Text = string.Empty;
            txtB100.Text = string.Empty;
            txtB100.Text = string.Empty;
            txtB50.Text = string.Empty;
            txtB20.Text = string.Empty;
            txtB10.Text = string.Empty;
            txtM5.Text = string.Empty;
            txtM2.Text = string.Empty;
            txtM1.Text = string.Empty;
            txtCantidad.Text = string.Empty;
            txtCantidad.Focus();
   
        }

http://www.4shared.com/rar/9KxNCtLD/slnHPBilletesyMonedas.html


CALCULAR IGV


 public partial class frmIgvyMontoaPagar : Form
    {
        public frmIgvyMontoaPagar()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //declarar variables
            int N, X, Monto, Igv;
            //leer datos
            N = int.Parse(txtNumero.Text);
            X = int.Parse(txtPrecio.Text);
            //procesos
            Monto = N * X;
            Igv = (Monto * 18) / 118;
            //escribir resultado
            txtMonto.Text = Monto.ToString();
            txtIgv.Text = Igv.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtIgv.Text = string.Empty;
            txtMonto.Text=string.Empty;
            txtNumero.Text = string.Empty;
            txtPrecio.Text = string.Empty;
            txtNumero.Focus();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/UR8DR4sX/slnHPCalcularIGV.html

COMPANIA DE AGUA


public partial class frmCompaniadeAgua : Form
    {
        public frmCompaniadeAgua()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //ingresar variables
            int Consumo;
            double Subtotal, Igv, Total;
            //leer datos
            Consumo = int.Parse(txtConsumo.Text);
            //procesos
            Subtotal = (0.5 * Consumo) + 2;
            Igv = Subtotal * 0.18;
            Total = Subtotal + Igv;
            //escribir resultado
            txtTotal.Text = Total.ToString();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtConsumo.Text = string.Empty;
            txtTotal.Text = string.Empty;
            txtConsumo.Focus();
        }


http://www.4shared.com/rar/y8glnp-z/slnHPCompaniadeAgua.html

DECENAS Y UNIDADES


public partial class frmDecenasUnidades : Form
    {
        public frmDecenasUnidades()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //declarar variables
            int Numero, Decenas, Unidades;
            //leer datos
            Numero = int.Parse(txtNumero.Text);
            //Procesos
            Decenas = Numero / 10;
            Unidades = Numero % 10;
            //escribir resultado
            txtDecenas.Text = Decenas.ToString();
            txtUnidades.Text = Unidades.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtDecenas.Text = string.Empty;
            txtNumero.Text = string.Empty;
            txtUnidades.Text = string.Empty;
            txtNumero.Focus();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/HLTBYucZ/slnHPDecenasUnidades.html


HORAS MINUTOS Y SEGUNDOS


public partial class frmHHMMSS : Form
    {
        public frmHHMMSS()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //Declarar Variables
            int HH, MM, SS, HF, MF, SF, TS;
            //Leer Datos
            HH = int.Parse(txtHH.Text);
            MM = int.Parse(txtMM.Text);
            SS = int.Parse(txtSS.Text);
            //Procesos
            TS = (HH * 3600) + (MM * 60) + SS + 1;
            HF = TS / 3600;
            MF = (TS % 3600) / 60;
            SF = (TS % 3600) % 60;
            //Escribir Resultado
            txtHF.Text = HF.ToString();
            txtMF.Text = MF.ToString();
            txtSF.Text = SF.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtHF.Text = string.Empty;
            txtHH.Text = string.Empty;
            txtMF.Text = string.Empty;
            txtMM.Text = string.Empty;
            txtSF.Text = string.Empty;
            txtSS.Text = string.Empty;
         
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/8HSXE0hU/slnHPHorasMinutosSegundos.html


LIEBRE


 public partial class frmLiebre : Form
    {
        public frmLiebre()
        {
            InitializeComponent();
        }

   

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //declarar Variables
            int t, v, espacio;
            //leer datos}
            t = int.Parse(txtTiempo.Text);
            v = int.Parse(txtVelocidad.Text);
            //procesos
            espacio = v * t;
            //escribir resultado
            txtEspacio.Text = espacio.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtEspacio.Text = string.Empty;
            txtTiempo.Text = string.Empty;
            txtVelocidad.Text = string.Empty;
            txtVelocidad.Focus();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }



http://www.4shared.com/rar/nQcI99Zf/slnHPLiebre.html



LIEBRE TORTUGA 2


public partial class frmLiebreTortuga2 : Form
    {
        public frmLiebreTortuga2()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            int VL, VT, T, D;
            VL=int.Parse(txtVL.Text);
            VT=int.Parse(txtVT.Text);
            T=int.Parse(txtTiempo.Text);
            D=(VL+VT)*T;
            txtDistancia.Text=D.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtDistancia.Text = string.Empty;
            txtTiempo.Text = string.Empty;
            txtVL.Text = string.Empty;
            txtVT.Text = string.Empty;
            txtVL.Focus();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/Rv-S0OMZ/slnHPLiebreTortuga2.html



MITAD DOBLE TRIPLE


 public partial class frmmitadcuadradocubo : Form
    {
        public frmmitadcuadradocubo()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //Ingresar Variables
            int Numero, doble, cubo;
            double mitad;
            //leer datos
            Numero = int.Parse(txtNumero.Text);
            //Procesos
            mitad = Numero / 2;
            doble = Numero * Numero;
            cubo = Numero * Numero * Numero;
            //Escribir resultado
            txtMitad.Text = mitad.ToString();
            txtCuadrado.Text = doble.ToString();
            txtCubo.Text = cubo.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
         
            txtNumero.Text = string.Empty;
            txtCuadrado.Text = string.Empty;
            txtCubo.Text = string.Empty;
            txtMitad.Text = string.Empty;
         
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }


http://www.4shared.com/rar/dimKnC0P/slnHPMitadDobleTriple.html


PROMEDIO DE TRES NOTAS


 public partial class frmPromedio3Notas : Form
    {
        public frmPromedio3Notas()
        {
            InitializeComponent();
        }

        private void btnPromediar_Click(object sender, EventArgs e)
        {
            int nota1, nota2, nota3, suma;
            double promedio;
            nota1 = int.Parse(txtNota1.Text);
            nota2 = int.Parse(txtNota2.Text);
            nota3 = int.Parse(txtNota3.Text);
            suma = nota1 + nota2 + nota3;
            promedio = suma / 3;
            txtPromedio.Text = promedio.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtNota1.Text = string.Empty;
            txtNota2.Text = string.Empty;
            txtNota3.Text = string.Empty;
            txtPromedio.Text = string.Empty;
            txtNota1.Focus();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/wJSWrK3Q/slnHPPromedio3Notas.html


SOLES DOLARES


public partial class frmSolesDolares : Form
    {
        public frmSolesDolares()
        {
            InitializeComponent();
        }

        private void btnCambiar_Click(object sender, EventArgs e)
        {
            //ingresar variables
            int soles;
            double dolares;
            //leer datos
            soles = int.Parse(txtsoles.Text);
            //Procesoss
            dolares = soles / 2.67;
            //escribir resulatados
            txtDolars.Text = dolares.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtDolars.Text = string.Empty;
            txtsoles.Text = string.Empty;
            txtsoles.Focus();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/TUYKVPuc/slnHPSolesDolares.html


SUMA DE DOS  NUMEROS


public partial class frmSuma2Numeros : Form
    {
        public frmSuma2Numeros()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //Declarar Variables
            int Oper1, Oper2, Suma;
            //Leer Datos
            Oper1 = int.Parse(txtOperador1.Text);
            Oper2 = int.Parse(txtOperador2.Text);
            //Procesos
            Suma = Oper1 + Oper2;
            //Escribir resultado
            txtSuma.Text = Suma.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtOperador1.Text = string.Empty;
            txtOperador2.Text = string.Empty;
            txtSuma.Text = string.Empty;
            txtOperador1.Focus();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

http://www.4shared.com/rar/ZlXttzq7/slnHPSuma2Numeros.html


SUMA  DE LOS PRIMEROS NUMEROS 


 public partial class frmSumaNPrimeros : Form
    {
        public frmSumaNPrimeros()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //declarar variables
            int Numero, Suma, Resultado;
            //leer datos
            Numero = int.Parse(txtnumero.Text);
            //Procesos
            Suma = Numero + 1;
            Resultado = (Numero * Suma) / 2;
            //escribir resultado
            txtResultado.Text = Resultado.ToString();

        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtnumero.Text = string.Empty;
            txtResultado.Text = string.Empty;
            txtnumero.Focus();
        }

http://www.4shared.com/rar/F94bl7Bz/slnHPSumaNprimerosNumeros.html


UNIDADES DECENAS CENTENAS


 public partial class frmUnidadesDecenasCentenas : Form
    {
        public frmUnidadesDecenasCentenas()
        {
            InitializeComponent();
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            //Declarar variables
            int Numero, Unidades, Decenas, Centenas;
            //leer datos
            Numero = int.Parse(txtNumero.Text);
            //procesos
            Unidades = Numero % 10;
            Decenas = (Numero / 10) % 10;
            Centenas = (Numero / 10) / 10;
            //escribir resultado
            txtunidades.Text = Unidades.ToString();
            txtDecenas.Text = Decenas.ToString();
            txtCentenas.Text = Centenas.ToString();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            txtCentenas.Text = string.Empty;
            txtDecenas.Text = string.Empty;
            txtNumero.Text = string.Empty;
            txtunidades.Text = string.Empty;
            txtNumero.Focus();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            Close();
        }


http://www.4shared.com/rar/ePjfsVmB/slnHPUnidadesDecenasCentenas.html






DESARROLLO DE ALGORITMOS EN MODO (CONSOLE)


ÁREA DEL CUADRADO


static void Main(string[] args)
        {
            //declarar variables
            int Lado, Area;
            //leer datos
            Console.WriteLine("Ingresar Lado");
            Lado = int.Parse(Console.ReadLine());
            //procesos
            Area = Lado*Lado;
            //escribir resultado
            Console.WriteLine("El Lado del Cuadrado es");
            Console.WriteLine(Area);
            Console.ReadKey();
        }





http://www.4shared.com/rar/1S-RcJgx/slnAreaCuadrado.html



ÁREA DEL RECTÁNGULO


static void Main(string[] args)
        {
            //declarar Variables
            int Base, Altura, Area;
            //Leer datos
            Console.WriteLine("Ingrese Base del Rectangulo");
            Base = int.Parse(Console.ReadLine());
            Console.WriteLine("Ingrese Altura del Rectangulo");
            Altura = int.Parse(Console.ReadLine());
            //procesos
            Area = Base * Altura;
            //escribir resultado
            Console.WriteLine("El Area del Rectangulo es");
            Console.WriteLine(Area);
            Console.ReadKey();
        }

http://www.4shared.com/rar/grrcPl8G/slnAreaRectangulo.html

ÁREA Y PERÍMETRO


static void Main(string[] args)
        {
            //declarar variables
            int altura, b, area, perimetro;
            //leer datos
            Console.WriteLine("Ingrese la altura del Rectangulo");
            altura = int.Parse(Console.ReadLine());
            Console.WriteLine("Ingrese la base del Rectangulo");
            b = int.Parse(Console.ReadLine());
            //procesos
            area = altura * b;
            perimetro = (b + altura) * 2;
            //escribir resultados
            Console.WriteLine("El Area del Rectangulo es");
            Console.WriteLine(area);
            Console.WriteLine("El Perimetro del Rectangulo es");
            Console.WriteLine(perimetro);
            Console.ReadKey();
       }


http://www.4shared.com/rar/mGpdlxCz/slnAreayPerimetro.html


BILLETES Y MONEDAS


 static void Main(string[] args)
        {
            //Declarar Variables
            int Cantidad, B200, B100, B50, B20, B10, M5, M2, M1;
            //Leer Datos
            Console.WriteLine("Ingrese Cantidad a Cambiar");
            Cantidad = int.Parse(Console.ReadLine());
            //Procesos
            B200 = Cantidad / 200;
            Cantidad = Cantidad % 200;
            B100 = Cantidad / 100;
            Cantidad = Cantidad % 100;
            B50 = Cantidad / 50;
            Cantidad = Cantidad % 50;
            B20 = Cantidad / 20;
            Cantidad = Cantidad % 20;
            B10 = Cantidad / 10;
            Cantidad = Cantidad % 10;
            M5 = Cantidad / 5;
            Cantidad = Cantidad % 5;
            M2 = Cantidad / 2;
            Cantidad = Cantidad % 2;
            M1 = Cantidad / 1;
            Cantidad = Cantidad % 1;
            //Escribir Resultados
            Console.WriteLine("El Numero de Billetes de 200 es ");
            Console.WriteLine(B200);
            Console.WriteLine("El Numero de Billetes de 100 es ");
            Console.WriteLine(B100);
            Console.WriteLine("El Numero de Billetes de 50 es ");
            Console.WriteLine(B50);
            Console.WriteLine("El Numero de Billetes de 20 es ");
            Console.WriteLine(B20);
            Console.WriteLine("El Numero de Billetes de 10 es ");
            Console.WriteLine(B10);
            Console.WriteLine("El Numero de Monedas de 5 es ");
            Console.WriteLine(M5);
            Console.WriteLine("El Numero de Monedas de 2 es ");
            Console.WriteLine(M2);
            Console.WriteLine("El Numero de Monedas de 1 es ");
            Console.WriteLine(M1);
            Console.ReadKey();
        }

http://www.4shared.com/rar/OQtvm4GP/slnBilletesyMonedas.html

COMPANIA DE AGUA



  static void Main(string[] args)
        {
            //ingresar variables
            int Consumo;
            double Subtotal, Igv, Total;
            //leer datos
            Console.WriteLine("Ingresar Consumo en m3");
            Consumo = int.Parse(Console.ReadLine());
            //procesos
            Subtotal = (0.5 * Consumo) + 2;
            Igv = Subtotal * 0.18;
            Total = Subtotal + Igv;
            //escribir resultado
            Console.WriteLine("El MOnto Total a Pagar es ");
            Console.WriteLine(Total);
            Console.ReadKey();
        }

http://www.4shared.com/rar/fE1-OqRW/slnCompaniadeAgua.html

DECENAS UNIDADES


static void Main(string[] args)
        {
            //declarar variables
            int Numero, Decenas, Unidades;
            //leer datos
            Console.WriteLine("Ingrese el Numero a Decifrar");
            Numero = int.Parse(Console.ReadLine());
            //Procesos
            Decenas = Numero / 10;
            Unidades = Numero % 10;
            //escribir resultado
            Console.WriteLine("Las Decenas del Numero es");
            Console.WriteLine(Decenas);
            Console.WriteLine("Las Unidades del Numero es");
            Console.WriteLine(Unidades);
            Console.ReadKey();
        }

http://www.4shared.com/rar/wLuUxixS/slnDecenasUnidades.html

HORAS MINUTOS Y SEGUNDOS


static void Main(string[] args)
        {
            //Declarar Variables
            int HH, MM, SS, HF, MF, SF, TS;
            //Leer Datos
            Console.WriteLine("Ingrese Hora Inicial");
            HH = int.Parse(Console.ReadLine());
            Console.WriteLine("Ingrese Minutos Iniciales");
            MM = int.Parse(Console.ReadLine());
            Console.WriteLine("Ingrese Segundos Iniciales");
            SS = int.Parse(Console.ReadLine());
            //Procesos
            TS = (HH * 3600) + (MM * 60) + SS + 1;
            HF = TS / 3600;
            MF = (TS % 3600) / 60;
            SF = (TS % 3600) % 60;
            //Escribir Resultado
            Console.WriteLine("La Hora Final es ");
            Console.WriteLine(HF);
            Console.WriteLine("Los Minutos Finales son");
            Console.WriteLine(MF);
            Console.WriteLine("Los Segundos Finales son");
            Console.WriteLine(SF);
            Console.ReadKey();
        }
http://www.4shared.com/rar/e2Mp3CF0/slnHorasMinutosSegundos.html

MONTO Y IGV


static void Main(string[] args)
        {
            //declarar variables
            int N, X, Monto, Igv;
            //leer datos
            Console.WriteLine("Ingresar Numero de Articulos");
            N = int.Parse(Console.ReadLine());
            Console.WriteLine("Ingresar Precio por Articulo");
            X = int.Parse(Console.ReadLine());
            //procesos
            Monto = N * X;
            Igv = (Monto * 18) / 118;
            //escribir resultado
            Console.WriteLine("El Monto A pagar es");
            Console.WriteLine(Monto);
            Console.WriteLine("El IGV cobrado es");
            Console.WriteLine(Igv);
            Console.ReadKey();
        }

http://www.4shared.com/rar/JY14KWPV/slnIgvMOnto.html


LIBRE


    static void Main(string[] args)
        {
            //declarar variables
            int t, v, e;
            //leer datos
            Console.WriteLine("Ingresar Tiempo");
            t = int.Parse(Console.ReadLine());
            Console.WriteLine("Ingresar Velocidad");
            v = int.Parse(Console.ReadLine());
            //procesos
            e = t * v;
            //escribir resultado
            Console.WriteLine("El espacio recorrido es:");
            Console.WriteLine(e);
            Console.ReadKey();
        }

http://www.4shared.com/rar/EJHfE_mE/slnLibre.html


LIBRE Y TORTUGA 1


 static void Main(string[] args)
        {
            //declarar varialbes
            int VT, VL, T, E;
            //leer datos
            Console.WriteLine("Ingresar Velocidad de la Tortuga");
            VT = int.Parse(Console.ReadLine());
            Console.WriteLine("Ingresar Velocidad de la Liebre");
            VL = int.Parse(Console.ReadLine());
            Console.WriteLine("Ingresar el Tiempo");
            T = int.Parse(Console.ReadLine());
            //procesos
            E = (VL - VT) * T;
            //escribir resultado
            Console.WriteLine("El espacio de Separacion es");
            Console.WriteLine(E);
            Console.ReadKey();
        }

http://www.4shared.com/rar/BT2eVWCY/slnLibreTortuga1.html

LIEBRE Y TORTUGA 2


static void Main(string[] args)
        {
            //declarar varialbes
            int VT, VL, T, E;
            //leer datos
            Console.WriteLine("Ingresar Velocidad de la Tortuga");
            VT = int.Parse(Console.ReadLine());
            Console.WriteLine("Ingresar Velocidad de la Liebre");
            VL = int.Parse(Console.ReadLine());
            Console.WriteLine("Ingresar el Tiempo");
            T = int.Parse(Console.ReadLine());
            //procesos
            E = (VL + VT) * T;
            //escribir resultado
            Console.WriteLine("El espacio de Separacion es");
            Console.WriteLine(E);
            Console.ReadKey();
        }

http://www.4shared.com/rar/HN787XAf/slnLibreTortuga2.html

MITAD DOBLE CUBO



 static void Main(string[] args)
        {
            //declarar variables
            int Numero, Cuadrado, Cubo;
            double mitad;
            //leer datos
            Console.WriteLine("Escribir Numero");
            Numero=int.Parse(Console.ReadLine());
            //procesos
            mitad = Numero / 2;
            Cuadrado = Numero * Numero;
            Cubo = Numero * Numero * Numero;
            //escribir resultado
            Console.WriteLine("La Mitad del Numero es");
            Console.WriteLine(mitad);
            Console.WriteLine("El Doble del Numero es");
            Console.WriteLine(Cuadrado);
            Console.WriteLine("El Cubo del Numero es");
            Console.WriteLine(Cubo);
            Console.ReadKey();
        }

http://www.4shared.com/rar/F5aeoNmA/slnMitadDobleCubo.html

PROMEDIO  DE TRES NOTAS


      static void Main(string[] args)
        {
            //Declarar Variables
            int nota1, nota2, nota3, suma;
            double promedio;
            //leer Datos
            Console.WriteLine("Ingresar Primera Nota");SUMA DE DOS
            nota1 = int.Parse(Console.ReadLine());
            Console.WriteLine("Ingresar Segunda Nota");
            nota2 = int.Parse(Console.ReadLine());
            Console.WriteLine("Ingresar Tercera Nota");
            nota3 = int.Parse(Console.ReadLine());
            //Procesos
            suma = nota1 + nota2 + nota3;
            promedio = suma / 3;
            //Escribir resultado
            Console.WriteLine("El Promedio de las 3 Notas es");
            Console.WriteLine(promedio);
            Console.ReadKey();
        }
http://www.4shared.com/rar/DSbRyxMC/slnPromedio3Notas.html

SUMA DE DOS NÚMEROS



static void Main(string[] args)
        {
            //declarar variables
            int Operador1, Operador2, Suma;
            //leer datos
            Console.WriteLine("Ingresar Primero Numero");
            Operador1 = int.Parse(Console.ReadLine());
            Console.WriteLine("Ingresar Segundo Numero");
            Operador2 = int.Parse(Console.ReadLine());
            //procesos
            Suma = Operador2 + Operador1;
            //escribir resultado
            Console.WriteLine("La suma de los 2 Numeros es");
            Console.WriteLine(Suma);
            Console.ReadKey();
        }

http://www.4shared.com/rar/uv_vVcrs/slnSuma2Numeros.html

SUMA DE LOS N PRIMEROS NÚMEROS



static void Main(string[] args)
        {
            //declarar variables
            int Numero, Suma, Resultado;
            //leer datos
            Console.WriteLine("Ingresar Numero");
            Numero = int.Parse(Console.ReadLine());
            //Procesos
            Suma = Numero + 1;
            Resultado = (Numero * Suma) / 2;
            //escribir resultado
            Console.WriteLine("La Suma de los N primeros Numeros es");
            Console.WriteLine(Resultado);
            Console.ReadKey();
        }



http://www.4shared.com/rar/FgslABoD/slnSumaNPrimerosNumeros.html


UNIDAD DECENA CENTENA



 static void Main(string[] args)
        {
            //Declarar variables
            int Numero, Unidades, Decenas, Centenas;
            //leer datos
            Console.WriteLine("Escribir Numero de 3 Cifras");
            Numero = int.Parse(Console.ReadLine());
            //procesos
            Unidades = Numero % 10;
            Decenas = (Numero / 10) % 10;
            Centenas = (Numero / 10) / 10;
            //escribir resultado
            Console.WriteLine("La Unidades es ");
            Console.WriteLine(Unidades);
            Console.WriteLine("La Decena es ");
            Console.WriteLine(Decenas);
            Console.WriteLine("la centenas es");
            Console.WriteLine(Centenas);
            Console.ReadKey();
        }

http://www.4shared.com/rar/cMoJFwuo/slnUnidadesDecenasCentenas.html

APROBADO DESAPROBADO


 static void Main(string[] args)
        {
            //Declarar Variables
            int Nt1, Nt2;
            double Promedio;
            string Observacion;
            //leer datos
            Nt1 = int.Parse(Console.ReadLine());
            Nt2 = int.Parse(Console.ReadLine());
            //Procesos
            Promedio = (Nt1 + Nt2) / 2;
            if (Promedio > 10)
            {
                Observacion = "Aprobado";
            }
            else
            {
                Observacion = "Desaprobado";
            }
            //escribir resultado
            Console.WriteLine(Observacion);
            Console.ReadKey();
        }

http://www.4shared.com/rar/kbd7JxAF/slnAprobadoDesaprobado.html

SOLES A DOLARES



static void Main(string[] args)
        {
            //Declarar variables
            int soles;
            double dolares;
            //leer datos
            soles = int.Parse(Console.ReadLine());
            //Procesoss
            dolares = soles / 2.67;
            //escribir resulatados
            Console.WriteLine(dolares);
            Console.ReadKey();
         
        }

http://www.4shared.com/rar/nQwUzi3S/slnSolesDolares.html