martes, 25 de noviembre de 2008
software Latex
Es un lenguaje de marcado para documentos, y un sistema de preparación de documentos, formado por un gran conjunto de macros de TeX, escritas inicialmente por Leslie Lamport (LamportTeX) en 1984, con la intención de facilitar el uso del lenguaje de composición tipográfica creado por Donald Knuth. Es muy utilizado para la composición de artículos académicos, tesis y libros técnicos, dado que la calidad tipográfica de los documentos realizados con LaTeX es comparable a la de una editorial científica de primera línea. LaTeX es software libre bajo licencia LPPL
Descripción técnica
El LaTeX es un procesador de textos que está formado mayoritariamente por órdenes (macros) construidas a partir de comandos de TeX —un lenguaje «de bajo nivel», en el sentido de que sus acciones últimas son muy elementales— pero con la ventaja añadida, en palabras de Lamport, de «poder aumentar las capacidades de LaTeX utilizando comandos propios del TeX descritos en The TeXbook» Esto es lo que convierte a LaTeX en una herramienta práctica y útil pues, a su facilidad de uso, se une toda la potencia de TeX. Estas características hicieron que LaTeX se extendiese rápidamente entre un amplio sector científico y técnico, hasta el punto de convertirse en uso obligado en comunicaciones y congresos, y requerido por determinadas revistas a la hora de entregar artículos académicos.
Su código abierto permitió que muchos usuarios realizasen nuevas utilidades que extendiesen sus capacidades con objetivos muy variados, a veces ajenos a la intención con la que fue creado: aparecieron diferentes dialectos de LaTeX que, a veces, eran incompatibles entre sí. Para atajar este problema, en 1989 Lamport y otros desarrolladores iniciaron el llamado «Proyecto LaTeX3». En otoño de 1993 se anunció una reestandarización completa de LaTeX, mediante una nueva versión que incluía la mayor parte de estas extensiones adicionales (como la opción para escribir transparencias o la simbología de la American Mathematical Society) con el objetivo de dar uniformidad al conjunto y evitar la fragmentación entre versiones incompatibles de LaTeX 2.09. Esta tarea la realizaron Frank Mittlebach, Johannes Braams, Chris Rowley y Sebastia Rahtz junto al propio Leslie Lamport. Hasta alcanzar el objetivo final del «Proyecto 3», a las distintas versiones se las viene denominando (o sea, «versión 2 y un poco más...»). Actualmente cada año se ofrece una nueva versión, aunque las diferencias entre una y otra suelen ser muy pequeñas y siempre bien documentadas.
Con todo, además de todas las nuevas extensiones, la característica más relevante de este esfuerzo de reestandarización fue la arquitectura modular: se estableció un núcleo central (el compilador) que mantiene las funcionalidades de la versión anterior pero permite incrementar su potencia y versatilidad por medio de diferentes paquetes que solo se cargan si son necesarios. De ese modo, LaTeX dispone ahora de innumerables paquetes para todo tipo de objetivos, muchos dentro de la distribución oficial, y otros realizados por terceros, en algunos casos para usos especializados.
martes, 11 de noviembre de 2008
Examen problema 2
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int angulo;
Console.WriteLine("introduce el valor en grados");
angulo = int.Parse(Console.ReadLine());
if(angulo<90)
Console.WriteLine("el angulo es agudo");
if(angulo>90)
Console.WriteLine("el angulo es obtuso");
if(angulo==90)
Console.WriteLine("el angulo es recto");
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int angulo;
Console.WriteLine("introduce el valor en grados");
angulo = int.Parse(Console.ReadLine());
if(angulo<90)
Console.WriteLine("el angulo es agudo");
if(angulo>90)
Console.WriteLine("el angulo es obtuso");
if(angulo==90)
Console.WriteLine("el angulo es recto");
Console.ReadLine();
}
}
}
jueves, 6 de noviembre de 2008
Detector de Metales
El radio genera un campo magnetico el cual cuando se mueve junto con la calculadora y pasa cerca de un mental produce en este un cambio en el flujo magnetico lo que genera en dicho metal un flujo de corriente.
Al presentarse en el metal un flujo de corriente, se genera alrededor del metal otro campo magnetico el cual al fluir por otra superficie metalica en el detector genera en este otra corriente.
Esta corriente generada en el radio alimenta una señal sonora la cual indica que hay un metal cerca.Cuanto más grande o cerca este el metal la señal será más fuerte pues mayor será el flujo de corriente.
Turn A Calculator Into A Metal Detector - video powered by Metacafe
Al presentarse en el metal un flujo de corriente, se genera alrededor del metal otro campo magnetico el cual al fluir por otra superficie metalica en el detector genera en este otra corriente.
Esta corriente generada en el radio alimenta una señal sonora la cual indica que hay un metal cerca.Cuanto más grande o cerca este el metal la señal será más fuerte pues mayor será el flujo de corriente.
Turn A Calculator Into A Metal Detector - video powered by Metacafe
miércoles, 5 de noviembre de 2008
Practica 6 Problema 4
string Nombre;
int CAL1, CAL2, CAL3, Promedio;
CAL1 = CAL2 = CAL3 = Promedio = 0;
Nombre = " ";
Nombre = textBox1.Text;CAL1 = int.Parse(textBox2.Text);
CAL2 = int.Parse(textBox3.Text);
CAL3 = int.Parse(textBox4.Text);
Promedio = (CAL1 + CAL2 + CAL3) / 3;
textBox5.Text = Promedio.ToString();
if (Promedio >= 7)MessageBox.Show(textBox1.Text + " APROVADO ");
elseMessageBox.Show(textBox1.Text + " NO APROVADO ");
}
private void CLEAR_Click(object sender, EventArgs e)

Practica 6 Problema 3
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
double PHS, PV, PA;
int CHS, CV, CA;
double Total, Desc1, Desc2;
PHS = PV = PA = 0.0;
CHS = CV = CA = 0;
Total = Desc1 = Desc2 = 0.0;
CHS = int.Parse(textBox1.Text);
PHS = double.Parse(textBox2.Text);
CV = int.Parse(textBox3.Text);
PV = double.Parse(textBox4.Text);
CA = int.Parse(textBox5.Text);
PA = double.Parse(textBox6.Text);
Desc1 = PHS * 0.20;
Desc2 = PV * 0.15;
Total = CHS * (PHS - Desc1) + CV * (PV - Desc2) + CA * PA;
textBox7.Text = Total.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
double PHS, PV, PA;
int CHS, CV, CA;
double Total, Desc1, Desc2;
PHS = PV = PA = 0.0;
CHS = CV = CA = 0;
Total = Desc1 = Desc2 = 0.0;
CHS = int.Parse(textBox1.Text);
PHS = double.Parse(textBox2.Text);
CV = int.Parse(textBox3.Text);
PV = double.Parse(textBox4.Text);
CA = int.Parse(textBox5.Text);
PA = double.Parse(textBox6.Text);
Desc1 = PHS * 0.20;
Desc2 = PV * 0.15;
Total = CHS * (PHS - Desc1) + CV * (PV - Desc2) + CA * PA;
Total = Total - Total * 0.07;
textBox7.Text = Total.ToString();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
double PHS, PV, PA;
int CHS, CV, CA;
double Total, Desc1, Desc2;
PHS = PV = PA = 0.0;
CHS = CV = CA = 0;
Total = Desc1 = Desc2 = 0.0;
CHS = int.Parse(textBox1.Text);
PHS = double.Parse(textBox2.Text);
CV = int.Parse(textBox3.Text);
PV = double.Parse(textBox4.Text);
CA = int.Parse(textBox5.Text);
PA = double.Parse(textBox6.Text);
Desc1 = PHS * 0.20;
Desc2 = PV * 0.15;
Total = CHS * (PHS - Desc1) + CV * (PV - Desc2) + CA * PA;
textBox7.Text = Total.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
double PHS, PV, PA;
int CHS, CV, CA;
double Total, Desc1, Desc2;
PHS = PV = PA = 0.0;
CHS = CV = CA = 0;
Total = Desc1 = Desc2 = 0.0;
CHS = int.Parse(textBox1.Text);
PHS = double.Parse(textBox2.Text);
CV = int.Parse(textBox3.Text);
PV = double.Parse(textBox4.Text);
CA = int.Parse(textBox5.Text);
PA = double.Parse(textBox6.Text);
Desc1 = PHS * 0.20;
Desc2 = PV * 0.15;
Total = CHS * (PHS - Desc1) + CV * (PV - Desc2) + CA * PA;
Total = Total - Total * 0.07;
textBox7.Text = Total.ToString();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
}
}
Practica 6 Problema 2
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string Des;
int CP;
double PreUni, Descuento, Total;
Console.WriteLine(" Introduce los siguientes valores ");
Console.WriteLine("Descripcion del Articulo : ");
Des = Console.ReadLine();
Console.Write(" Cantidad Pedida :");
CP = int.Parse(Console.ReadLine());
Console.Write(" Precio Unitario: ");
PreUni = double.Parse(Console.ReadLine());
Descuento = 0.0;
if (CP > 50)
Descuento = PreUni * 0.15;
Total = CP * (PreUni - Descuento);
Console.WriteLine("\n\nDescripcion Cantidad Precio Descuento Total");
Console.WriteLine("Articulo Pedida Unitario ");
Console.WriteLine( Des+" "+CP+" "+PreUni+" "+Descuento+" "+Total);
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string Des;
int CP;
double PreUni, Descuento, Total;
Console.WriteLine(" Introduce los siguientes valores ");
Console.WriteLine("Descripcion del Articulo : ");
Des = Console.ReadLine();
Console.Write(" Cantidad Pedida :");
CP = int.Parse(Console.ReadLine());
Console.Write(" Precio Unitario: ");
PreUni = double.Parse(Console.ReadLine());
Descuento = 0.0;
if (CP > 50)
Descuento = PreUni * 0.15;
Total = CP * (PreUni - Descuento);
Console.WriteLine("\n\nDescripcion Cantidad Precio Descuento Total");
Console.WriteLine("Articulo Pedida Unitario ");
Console.WriteLine( Des+" "+CP+" "+PreUni+" "+Descuento+" "+Total);
Console.ReadLine();
}
}
}

Practica 6 Problema 1
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int X, Y;
Console.WriteLine("Introduce Valor de X");
X = int.Parse(Console.ReadLine());
if (X < y =" 3" y =" X">
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int X, Y;
Console.WriteLine("Introduce Valor de X");
X = int.Parse(Console.ReadLine());
if (X < y =" 3" y =" X">

sábado, 1 de noviembre de 2008
Practica 5 Problema 4
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
double Largo, Ancho, Area, Precio, PrecioT;
Largo = double.Parse(textBox1.Text);
Ancho = double.Parse(textBox2.Text);
Precio = double.Parse(textBox3.Text);
Area = Largo * Ancho;
if (Area <= 400.00) PrecioT = Area * Precio;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
double Largo, Ancho, Area, Precio, PrecioT;
Largo = double.Parse(textBox1.Text);
Ancho = double.Parse(textBox2.Text);
Precio = double.Parse(textBox3.Text);
Area = Largo * Ancho;
if (Area <= 400.00) PrecioT = Area * Precio;
else PrecioT = Area * (Precio - Precio * 0.10); textBox4.Text = PrecioT.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Clear(); textBox2.Clear(); textBox3.Clear(); textBox4.Clear(); textBox1.Focus();
}
}
}
Practica 5 Problema 3
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int Numero = int.Parse(textBox1.Text);
if (Numero % 2 == 0)
MessageBox.Show(" El Numero es Par ");
else
MessageBox.Show(" El Numero es Impar ");
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox1.Focus();
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int Numero = int.Parse(textBox1.Text);
if (Numero % 2 == 0)
MessageBox.Show(" El Numero es Par ");
else
MessageBox.Show(" El Numero es Impar ");
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox1.Focus();
}
}
}
Practica 5 Problema 2
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
double tiempo, P;
Console.Write("Introduce valor de Tiempo: ");
tiempo = double.Parse(Console.ReadLine());
if (tiempo <= 35.00) P = 0.46 * tiempo; else P = 0.19 * tiempo + 9.45; Console.WriteLine("La presion es: " + P + " Psi"); Console.ReadLine();
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
double tiempo, P;
Console.Write("Introduce valor de Tiempo: ");
tiempo = double.Parse(Console.ReadLine());
if (tiempo <= 35.00) P = 0.46 * tiempo; else P = 0.19 * tiempo + 9.45; Console.WriteLine("La presion es: " + P + " Psi"); Console.ReadLine();
}
}
}
Practica 5 Problema 1
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int Valor1, Valor2;
Console.WriteLine("Introduce 2 valores enteros Diferentes");
Valor1=int.Parse(Console.ReadLine());
Valor2=int.Parse(Console.ReadLine());
if(Valor1 > Valor2)
{
Console.WriteLine("El primer numero es MAYOR ");
Console.ReadLine();
}
else
{
Console.WriteLine("El primer numero es MENOR ");
{
Console.ReadLine();
}
}
}
}
}


Practica 4 Problema 3
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
double pies, yardas, pulgadas, cm, metros, cmplg, mpie;
pies = double.Parse(textBox1.Text);
mpie = pies;
yardas = mpie / 3.0;
pulgadas = mpie * 12.0;
cmplg = pulgadas;
cm = cmplg * 2.54;
metros = cm / 100;
textBox2.Text = yardas.ToString();
textBox3.Text = pulgadas.ToString();
textBox4.Text = cm.ToString();
textBox5.Text = metros.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox2.Clear();
textBox3.Clear();
textBox4.Clear();
textBox5.Clear();
textBox1.Focus();
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
double pies, yardas, pulgadas, cm, metros, cmplg, mpie;
pies = double.Parse(textBox1.Text);
mpie = pies;
yardas = mpie / 3.0;
pulgadas = mpie * 12.0;
cmplg = pulgadas;
cm = cmplg * 2.54;
metros = cm / 100;
textBox2.Text = yardas.ToString();
textBox3.Text = pulgadas.ToString();
textBox4.Text = cm.ToString();
textBox5.Text = metros.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox2.Clear();
textBox3.Clear();
textBox4.Clear();
textBox5.Clear();
textBox1.Focus();
}
}
}
Practica 4 Problema 2
using System;
using System.Collections.Generic;using System.ComponentModel;using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace Practica_4_Problema_2
{
public partial class Form1 : Form{public Form1(){InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e){double C, F;C = double.Parse(textBox1.Text);
F = (9.0 / 5.0) * C + 32.0;textBox2.Text=F.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox2.Clear();
}

Practica 4 Problema 1
using System;using System.Collections.Generic;
using System.ComponentModel;
using System.Data;using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace Practica_4_Problema_1
{
public partial class Form1 : Form{public Form1()
{
InitializeComponent();
}
private void Calcular_Click(object sender, EventArgs e){double pesos, dolar, cantD;
pesos = double.Parse(textBox2.Text);
dolar = double.Parse(textBox1.Text);
cantD = pesos / dolar;textBox3.Text = cantD.ToString();
}
private void CLEAR_Click(object sender, EventArgs e){textBox2.Clear();
textBox3.Clear();
}

Practica 3 Problema 2
using System;
using System.Collections.Generic;using System.ComponentModel;
using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace Practica_3_Windows_Problema_2{public partial class Form1 : Form{public Form1(){InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int h, w;h = int.Parse(textBox1.Text);
w = int.Parse(textBox2.Text);
int Ar = h * w;int Pe = 2 * (h + w);
textBox3.Text = Ar.ToString();
textBox4.Text = Pe.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox2.Clear();
textBox3.Clear();
textBox4.Clear();
textBox1.Focus();
}
using System.Collections.Generic;using System.ComponentModel;
using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace Practica_3_Windows_Problema_2{public partial class Form1 : Form{public Form1(){InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int h, w;h = int.Parse(textBox1.Text);
w = int.Parse(textBox2.Text);
int Ar = h * w;int Pe = 2 * (h + w);
textBox3.Text = Ar.ToString();
textBox4.Text = Pe.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox2.Clear();
textBox3.Clear();
textBox4.Clear();
textBox1.Focus();
}
Practica 3 Problema 1
using System;
using System.Collections.Generic;using System.ComponentModel;
using System.Data;using System.Drawing;using System.Text;
using System.Windows.Forms;
namespace Practica_3_Windows{public partial class Form1 : Form{public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e){MessageBox.Show(" Bienvenido a la practica de Visual en C# " + Textbox1.Text);
}
using System.Collections.Generic;using System.ComponentModel;
using System.Data;using System.Drawing;using System.Text;
using System.Windows.Forms;
namespace Practica_3_Windows{public partial class Form1 : Form{public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e){MessageBox.Show(" Bienvenido a la practica de Visual en C# " + Textbox1.Text);
}
Practica 2 Problema 4
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
int x1, y1, x2, y2, Mx, My;
Console.WriteLine("Introduzca las coordenadas");
x1 = int.Parse(Console.ReadLine());
y1 = int.Parse(Console.ReadLine());
x2 = int.Parse(Console.ReadLine());
y2 = int.Parse(Console.ReadLine());
Mx = (x1 + x2) / 2;
My = (y1 + y2) / 2;
Console.WriteLine("La coordenada x del punto medio es=" + Mx);
Console.WriteLine("La coordenada ydel punto medio es =" + My);
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
int x1, y1, x2, y2, Mx, My;
Console.WriteLine("Introduzca las coordenadas");
x1 = int.Parse(Console.ReadLine());
y1 = int.Parse(Console.ReadLine());
x2 = int.Parse(Console.ReadLine());
y2 = int.Parse(Console.ReadLine());
Mx = (x1 + x2) / 2;
My = (y1 + y2) / 2;
Console.WriteLine("La coordenada x del punto medio es=" + Mx);
Console.WriteLine("La coordenada ydel punto medio es =" + My);
Console.ReadLine();
}
}
}
Practica 2 Problema 3
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int x1, y1, x2, y2, Pendiente;
Console.WriteLine("Introduce las coordenadas");
Console.WriteLine("X1= ");
x1 = int.Parse(Console.ReadLine());
Console.WriteLine("Y1= ");
y1 = int.Parse(Console.ReadLine());
Console.WriteLine("X2= ");
x2 = int.Parse(Console.ReadLine());
Console.WriteLine("Y2= ");
y2 = int.Parse(Console.ReadLine());
Console.WriteLine("Pendiente=(Y2-Y1)/(X2-X1)");
Console.WriteLine("Pendiente=(" + y2 + "-" + y1 + ")/(" + x2 + "-" + x1 + ")");
Pendiente = (y2 - y1) / (x2 - x1);
Console.WriteLine("La pendiente es: " + Pendiente);
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int x1, y1, x2, y2, Pendiente;
Console.WriteLine("Introduce las coordenadas");
Console.WriteLine("X1= ");
x1 = int.Parse(Console.ReadLine());
Console.WriteLine("Y1= ");
y1 = int.Parse(Console.ReadLine());
Console.WriteLine("X2= ");
x2 = int.Parse(Console.ReadLine());
Console.WriteLine("Y2= ");
y2 = int.Parse(Console.ReadLine());
Console.WriteLine("Pendiente=(Y2-Y1)/(X2-X1)");
Console.WriteLine("Pendiente=(" + y2 + "-" + y1 + ")/(" + x2 + "-" + x1 + ")");
Pendiente = (y2 - y1) / (x2 - x1);
Console.WriteLine("La pendiente es: " + Pendiente);
Console.ReadLine();
}
}
}
Practica 2 Problema 1
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int N1, N2, N3, N4, Suma, Promedio, Producto;
Console.WriteLine("Introduzca Cuatro Numeros: ");
Console.WriteLine("Primero: ");
N1 = int.Parse(Console.ReadLine());
Console.WriteLine("Segundo: ");
N2 = int.Parse(Console.ReadLine());
Console.WriteLine("Tercero: ");
N3 = int.Parse(Console.ReadLine());
Console.WriteLine("Cuarto: ");
N4 = int.Parse(Console.ReadLine());
Suma = N1 + N2 + N3 + N4;
Promedio = Suma / 4;
Producto = N1 * N2 * N3 * N4;
Console.WriteLine("La suma de " + N1 + " + " + N2 + " + " + N3 + " + " + N4 + " = " + Suma);
Console.WriteLine("El promedio es " + Promedio);
Console.WriteLine("El producto de " + N1 + " * " + N2 + " * " + N3 + " * " + N4 + " = " + Producto);
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int N1, N2, N3, N4, Suma, Promedio, Producto;
Console.WriteLine("Introduzca Cuatro Numeros: ");
Console.WriteLine("Primero: ");
N1 = int.Parse(Console.ReadLine());
Console.WriteLine("Segundo: ");
N2 = int.Parse(Console.ReadLine());
Console.WriteLine("Tercero: ");
N3 = int.Parse(Console.ReadLine());
Console.WriteLine("Cuarto: ");
N4 = int.Parse(Console.ReadLine());
Suma = N1 + N2 + N3 + N4;
Promedio = Suma / 4;
Producto = N1 * N2 * N3 * N4;
Console.WriteLine("La suma de " + N1 + " + " + N2 + " + " + N3 + " + " + N4 + " = " + Suma);
Console.WriteLine("El promedio es " + Promedio);
Console.WriteLine("El producto de " + N1 + " * " + N2 + " * " + N3 + " * " + N4 + " = " + Producto);
Console.ReadLine();
}
}
}
Practica 1 Problema 4
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int N1, N2, N3, Suma, Promedio, Producto;
Console.WriteLine("Introduce 3 valores enteros ");
N1 = int.Parse(Console.ReadLine());
N2 = int.Parse(Console.ReadLine());
N3 = int.Parse(Console.ReadLine());
Suma = N1 + N2 + N3;
Promedio = Suma / 3;
Producto = N1 * N2 * N3;
Console.WriteLine("La suma de " +N1+ "+" +N2+ "+" +N3+ " = " + Suma);
Console.WriteLine("El promedio es " + Promedio);
Console.WriteLine("El producto de " +N1+ "*" +N2+ "*" +N3+ " = " + Producto);
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int N1, N2, N3, Suma, Promedio, Producto;
Console.WriteLine("Introduce 3 valores enteros ");
N1 = int.Parse(Console.ReadLine());
N2 = int.Parse(Console.ReadLine());
N3 = int.Parse(Console.ReadLine());
Suma = N1 + N2 + N3;
Promedio = Suma / 3;
Producto = N1 * N2 * N3;
Console.WriteLine("La suma de " +N1+ "+" +N2+ "+" +N3+ " = " + Suma);
Console.WriteLine("El promedio es " + Promedio);
Console.WriteLine("El producto de " +N1+ "*" +N2+ "*" +N3+ " = " + Producto);
Console.ReadLine();
}
}
}
Practica 1 Problema 3
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
double Radio, Volumen, Area;
Console.WriteLine("Introduzca el radio de una esfera: ");
Radio = double.Parse(Console.ReadLine());
Volumen = 4 * Math.PI * Math.Pow(Radio, 3) / 3;
Area = 4 * Math.PI * Math.Pow(Radio, 2);
Console.WriteLine("El volumen de la esfera es: " + Volumen);
Console.WriteLine("El area de la esfera es: " + Area);
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
double Radio, Volumen, Area;
Console.WriteLine("Introduzca el radio de una esfera: ");
Radio = double.Parse(Console.ReadLine());
Volumen = 4 * Math.PI * Math.Pow(Radio, 3) / 3;
Area = 4 * Math.PI * Math.Pow(Radio, 2);
Console.WriteLine("El volumen de la esfera es: " + Volumen);
Console.WriteLine("El area de la esfera es: " + Area);
Console.ReadLine();
}
}
}
Practica 1 Problema 2
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
String Nombre;
Console.WriteLine("Hola, como te llamas?");
Nombre = Console.ReadLine();
Console.WriteLine("\n\n Bienvenido " + Nombre);
Console.WriteLine(" Seamos Amigos !");
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
String Nombre;
Console.WriteLine("Hola, como te llamas?");
Nombre = Console.ReadLine();
Console.WriteLine("\n\n Bienvenido " + Nombre);
Console.WriteLine(" Seamos Amigos !");
Console.ReadLine();
}
}
}

Practica 1 Problema 1
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Instituto tecnologico de Tijuana");
Console.WriteLine("Ing. Electronica");
Console.WriteLine("Materia: Herramientas Digitales");
Console.WriteLine("Tema: Practica 1a");
Console.WriteLine("Nombre del Alumno: Ruiz Morales Santiago ");
Console.WriteLine("Fecha: 13 de Octubre del 2008");
Console.ReadLine();
}
}
}

Suscribirse a:
Comentarios (Atom)
