domingo, 11 de octubre de 2009

Practica 6.4 Visual

Pseudocodigo



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_6_4_Windows
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
double P, T;
double A= 1994;

listBox1.Items.Add("\nAño \t\t Poblacion\n");
for (T = 9; T <= 25; T = T + 1.0) { P = 4.88 * (1 + Math.Exp(0.02 * T)); listBox1.Items.Add(A.ToString() + "\t\t" + P.ToString()); A++; } } private void button2_Click(object sender, EventArgs e) { listBox1.Items.Clear(); } private void button3_Click(object sender, EventArgs e) { Close(); } } }

No hay comentarios:

Publicar un comentario