Ensayo Diagramas Rad

Páginas: 16 (3778 palabras) Publicado: 23 de noviembre de 2012
Universidad Tecnológica
del Sur del Estado de México

Tecnologías de la Información Y Comunicación

Compendio

Practicas Realizadas
En el Cuatrimestre

Desarrollo de Aplicaciones

Apolinar Puntos Domínguez

David Félix Sánchez

201

San Miguel Ixtapan, Tejupilco, México a 02 de Agosto de 2011
PRACTICA 1. ABECEDARIO

La aplicación permite imprimir elabecedario a partir del ciclo do-while haciendo uso del tipo una variable de tipo char

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

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

private void button1_Click(object sender, EventArgs e)
{
char c = 'a';
do
{
listBox1.Items.Add(c.ToString() + "");
c++;
}
while (c <= 'z');

}
}
}

PRACTICA 2. ALIMENTAR ARREGLO

La aplicación permitealimentar un arreglo de 3 numeros, los cuales se ingresaran en el textBox y luego podrán imprimirse en el listBox

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

namespace Alimentar_Arreglo
{
public partial class Form1 : Form
{public static int con=0;

int[] a = new int[3];

public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{

if(con<3)
{
a[con]=Convert.ToInt16(textBox1.Text);
textBox1.Text = "";textBox1.Focus();
}
else
{
MessageBox.Show("Esta lleno");
}
con = con + 1;
}

private void button2_Click(object sender, EventArgs e)
{
for (int s = 0; s < 3; s++)
{ listBox1.Items.Add(a[s]); }
}
}
}

PRACTICA 3. TAMAÑO Y ALIMENTAR ARREGLO

Laaplicación permite establecer el tamaño del arreglo, alimentarlo e imprimirlo

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

namespace Tamaño_de_Arreglo
{
public partial class Form1 : Form
{
public static int s;
publicForm1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
s = Convert.ToInt16(textBox1.Text);
Form2 a = new Form2();
a.Show();
Hide();
}
}
}

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

namespace Tamaño_de_Arreglo
{
public partial class Form2 : Form
{
public static int b = Form1.s;

public static int con = 0;
int[] a = new int[b];

public Form2()
{
InitializeComponent();
}

private voidbutton1_Click(object sender, EventArgs e)
{

if (con < b)
{
a[con] = Convert.ToInt16(textBox1.Text);
textBox1.Text = "";
textBox1.Focus();
}
else
{
MessageBox.Show("Esta lleno");
}
con = con + 1;
}

private void...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Diagramas Rad
  • Diagramas Rad
  • Ensayo de diagrama de flujo
  • Diagrama hierro carbono Ensayo
  • Ensayo de Diagramas de Arbol
  • ENSAYO DEL DIAGRAMA DE FLUJO
  • diagramas de procesos de rad
  • Radar

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS