Examne De Redes

Páginas: 3 (675 palabras) Publicado: 21 de junio de 2012
PRACTICA DIRIGIDA # 3

ALUMNO: SERGIO ALCAZAR MENDOZA

ENUNCIADO 1

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace practica3
{
classClass1
{
public static int ca = 0;
public static int doble(int v1)
{
int d;
d= v1 * 2;
return d;
}
publicstatic int tripe(int v1)
{
int t;
t = v1 * 3;

return t;
}
public static int cuadruple(int v1)
{
intc;
c = v1 * 4;
ca++;
return c;
}

}
}

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

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

private void button1_Click(object sender, EventArgs e)
{
int numero, D, T, C;
numero = int.Parse(textBox1.Text);D = Class1.doble(numero);
T = Class1.tripe(numero);
C = Class1.cuadruple(numero);
listBox1.Items.Add(numero);
listBox2.Items.Add(D);listBox3.Items.Add(T);
listBox4.Items.Add(C);
textBox2.Text = Class1.ca.ToString();


}

private void button2_Click(object sender,EventArgs e)
{
textBox1.Text = "";
listBox1.Items.Clear();
listBox2.Items.Clear();
listBox3.Items.Clear();
listBox4.Items.Clear();textBox1.Focus();
textBox2.Text = "";
Class1.ca = 0;



}

private void button3_Click(object sender, EventArgs e)
{...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • examne cisco redes
  • Examn
  • Examnen
  • Examn
  • Examn
  • Examne
  • examn
  • examne

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS