Professional Documents
Culture Documents
DE
ASUNTO
FECHA
DESCRIPCIN
ACTIVIDAD
DE
LA
CRONOGRAMA DE
EJECUCIN
NOVIEMBRE
inicio de la elaboracin del
26
proyecto
programador
analista
programador
analista
programador
analista
programador
analista
23,24 y 25
28-29
Responsabledel rea:
Programador y analista:
Milagros Patty MAMANI VELSQUEZ.
COSTO DEL PROYECTO:
TABLA DE COSTOS DE HARDWARE
CONCEPTO
CANTIDAD COSTO
Monitor LG
5
CPU core i3 2
duo
5
S/. 1608
Teclado
S/. 160
Mouse
S/. 125
Costo total
RESPONSABLE
S/.3125
S/. 5018
y
y
y
y
COSTO
S/.20.00
S/. 3.00
S/. 23.00
S/. 5018
S/. 23.00
S/. 5041.00
ESPECIFICACIONES DE ACTOR:
ACTOR
DESCRIPCIN
ESTUDIANTE
CDIGO FUENTE:
Form 1: Tenemos un menuStrip1 dentro de ese men tenemos las siguientes opciones
como:
Archivo (en la opcin archivo tenemos SALIR que permite salir del sistema).
SALIR (cdigo):
this.Close();
Ayuda (en la opcin ayuda tenemos VER LA AYUDA que te permite dar algunas
instrucciones sobre la calculadora y el sistema educativo)
3:
if (sigue)
{
pantalla.Text = "";
pantalla.Text = "3";
sigue = false;
}
else
{
pantalla.Text = pantalla.Text + "3";
}
4:
if (sigue)
{
pantalla.Text = "";
pantalla.Text = "4";
sigue = false;
}
else
{
pantalla.Text = pantalla.Text + "4";
}
5:
if (sigue)
{
pantalla.Text = "";
pantalla.Text = "5";
sigue = false;
}
else
{
pantalla.Text = pantalla.Text + "5";
}
6:
if (sigue)
{
pantalla.Text = "";
pantalla.Text = "6";
sigue = false;
}
else
7:
if (sigue)
{
pantalla.Text = "";
pantalla.Text = "7";
sigue = false;
}
else
{
pantalla.Text = pantalla.Text + "7";
}
8:
if (sigue)
{
pantalla.Text = "";
pantalla.Text = "8";
sigue = false;
}
else
{
pantalla.Text = pantalla.Text + "8";
}
9:
if (sigue)
{
pantalla.Text = "";
pantalla.Text = "9";
sigue = false;
}
else
{
pantalla.Text = pantalla.Text + "9";
}
0:
if (sigue)
{
pantalla.Text = "";
pantalla.Text = "0";
sigue = false;
}
else
{
pantalla.Text = pantalla.Text + "0";
}
Igual:
sigue=true;
n2 = double.Parse(pantalla.Text);
switch(operador)
{
case"+":
solucion = n1+n2;
pantalla.Text = solucion.ToString();
break;
case "-":
solucion = n1 - n2;
pantalla.Text = solucion.ToString();
break;
case "*":
solucion = n1 * n2;
pantalla.Text = solucion.ToString();
break;
case "/":
solucion = n1 / n2;
pantalla.Text = solucion.ToString();
break;
default:
break;
}
Resta:
operador = "-";
sigue = true;
n1 = double.Parse(pantalla.Text);
Multiplicacin:
operador = "*";
sigue = true;
n1 = double.Parse(pantalla.Text);
Divisin:
operador = "/";
sigue = true;
n1 = double.Parse(pantalla.Text);
Raz:
n1 = double.Parse(pantalla.Text);
solucion = Math.Sqrt(n1);
pantalla.Text = solucion.ToString();
Exponente al cubo:
n1 = double.Parse(pantalla.Text);
solucion = Math.Pow(n1, 3);
pantalla.Text = solucion.ToString();
Logaritmo:
n1 = double.Parse(pantalla.Text);
solucion = Math.Log(n1);
pantalla.Text = solucion.ToString();
Tangente:
n1 = double.Parse(pantalla.Text);
solucion = Math.Tan(n1);
pantalla.Text = solucion.ToString();
Coseno:
n1 = double.Parse(pantalla.Text);
solucion = Math.Cos(n1);
pantalla.Text = solucion.ToString();
Seno:
n1 = double.Parse(pantalla.Text);
solucion = Math.Sin(n1);
pantalla.Text = solucion.ToString();
Limpiar:
pantalla.Clear();
pantalla.Text = "0";
sigue = true;
Borrar:
pantalla.Text = pantalla.Text.Substring(0, pantalla.Text.Length - 1);
if (pantalla.Text.Length == 0)
{
pantalla.Text = "0";
sigue = true;
}
Para llamar al formulario tabla de suma hacemos clic en el button tabla de sumar
(cdigo):
Tabla_de_Sumar tabla_suma = new Tabla_de_Sumar();
tabla_suma.Show();
}
Para llamar al formulario tabla de resta hacemos clic en el button tabla de restar
(cdigo):
{
Tabla_de_Restar tabla_resta = new Tabla_de_Restar();
tabla_resta.Show();
Para llamar al formulario tabla de divisin hacemos clic en el button tabla de dividir
(cdigo):
{
tabla_de_Dividir tabla_division = new tabla_de_Dividir();
tabla_division.Show();
}
cdigo de GROUPBOX 3:
Button RESOLVER (cdigo):
if (((textBox1.Text == "") || (textBox2.Text == "")) || ((textBox1.Text == "") &&
(textBox2.Text == "")))
MessageBox.Show("Debes llenar las dos casillas");
else
{
num1 = int.Parse(textBox1.Text);
num2 = int.Parse(textBox2.Text);
result = num1 + num2;
textBox3.Text = result.ToString();
textBox3.Visible = true;
}