martes, 19 de mayo de 2009

Solución a evaluación de gráficos

(No controla excepciones)
Descargar el archivo completo y comprimido:

}http://rapidshare.com/files/234998528/InteresSimple.rar.html



namespace InteresSimple
{
public partial class Form1 : Form
{
double interes, capital, tasa, tiempo;
public Form1()
{
InitializeComponent();
}



private void radioButton3_CheckedChanged(object sender, EventArgs e)
{
txtCapital.Enabled = true;
txtTasa.Enabled = false;
txtTiempo.Enabled = true;
txtInteresGenerado.Enabled = true;
txtCapital.Clear();
txtInteresGenerado.Clear();
txtTasa.Clear();
txtTiempo.Clear();
}

private void button1_Click(object sender, EventArgs e)
{
if (rbtInteresGenerado.Checked)
{
capital = Convert.ToDouble(txtCapital.Text);
tasa = Convert.ToDouble(txtTasa.Text);
tiempo = Convert.ToDouble(txtTiempo.Text);
txtInteresGenerado.Text = (capital * tasa/100 * tiempo).ToString();
}
else if (rbtCapital.Checked)
{
interes = Convert.ToDouble(txtInteresGenerado.Text);
tasa = Convert.ToDouble(txtTasa.Text);
tiempo = Convert.ToDouble(txtTiempo.Text);
txtCapital.Text = (interes/(tasa/100 * tiempo)).ToString();
}
else if(rbtTasa.Checked)
{
capital = Convert.ToDouble(txtCapital.Text);
interes = Convert.ToDouble(txtInteresGenerado.Text);
tiempo = Convert.ToDouble(txtTiempo.Text);
txtTasa.Text = ((interes / (capital * tiempo))*100).ToString(); ;
}
else if (rbtTiempo.Checked)
{
capital = Convert.ToDouble(txtCapital.Text);
interes = Convert.ToDouble(txtInteresGenerado.Text);
tasa = Convert.ToDouble(txtTasa.Text);
txtTiempo.Text = (interes / (capital * tasa/100)).ToString(); ;
}
else
{
MessageBox.Show("Seleccione una opción");
}
}

private void rbtInteresGenerado_CheckedChanged(object sender, EventArgs e)
{
txtCapital.Enabled = true;
txtTasa.Enabled = true;
txtTiempo.Enabled = true;
txtInteresGenerado.Enabled = false;
txtCapital.Clear();
txtInteresGenerado.Clear();
txtTasa.Clear();
txtTiempo.Clear();
}

private void rbtCapital_CheckedChanged(object sender, EventArgs e)
{
txtCapital.Enabled = false;
txtTasa.Enabled = true;
txtTiempo.Enabled = true;
txtInteresGenerado.Enabled = true;
txtCapital.Clear();
txtInteresGenerado.Clear();
txtTasa.Clear();
txtTiempo.Clear();
}

private void rbtTiempo_CheckedChanged(object sender, EventArgs e)
{
txtCapital.Enabled = true;
txtTasa.Enabled = true;
txtTiempo.Enabled = false;
txtInteresGenerado.Enabled = true;
txtCapital.Clear();
txtInteresGenerado.Clear();
txtTasa.Clear();
txtTiempo.Clear();
}
}
}

viernes, 8 de mayo de 2009

Notas 20% Grupos 1 y 21

Atención: Los estudiantes cuyos códigos no aparecen en el siguiente listado, tienen cero en la nota!
Código: 220071056, Nota: 1,0
Código: 220082194, Nota: 3,4
Código: 220071370, Nota: 2,5
Código: 220082155, Nota: 3,2
Código: 220082416, Nota: 3,2
Código: 220082227, Nota: 2,8
Código: 220072149, Nota: 4,0
Código: 220072205, Archivo dañado, no se puede evaluar!
Código: 220081053, Nota: 1,8
Código: 220072207, Archivo dañado, no se puede evaluar!
Código: 220051088, Nota: 1,0
Código: 220082503, Nota: 1,2
Código: 220082473, Nota: 1,8
Código: 220082535, Nota: 1,0
Código: 220082072, Nota: 2,7
Código: 220082244, Nota: 3,2
Código: 220082536, Nota: 3,1
Código: 220082331, Nota: 1,0
Código: 220071346, Nota: 2,2
Código: 220081232, Nota: 1,2
Código: 220051174, Nota: 2,7
Código: 220051120, Nota: 3,0
Código: 220082291, Nota: 2,9
Código: 220082342, Nota: 4,0
Código: 220082621, Nota: 2,0
Código: 220082290, Nota: 3,0
Código: 220082319, Nota: 3,0