using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Suma_de_tres_numeros
{
class Program
{
static void Main(string[] args)
{
string aux;
int N1, N2, N3, R;
Console.WriteLine("Introduzca el primer numero");
aux = Console.ReadLine();
N1 = int.Parse(aux);
Console.WriteLine("Introduzca el segundo numero");
aux = Console.ReadLine();
N2 = int.Parse(aux);
Console.WriteLine("Introduzca el tercer numero");
aux = Console.ReadLine();
N3 = int.Parse(aux);
R = N1 + N2 + N3;
Console.WriteLine(R);
Console.ReadKey();
}
}
}
jueves, 19 de mayo de 2011
clase # 1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Consola
{
class Program
{
static void Main(string[] args)
{
int a,b,r;
string n;
// Para mostrar mensajes
Console.WriteLine("Hola como estas, estoy programando en Consola");
Console.WriteLine("Estamos en el taller de programación");
Console.WriteLine("Introduzca su nombre:");
n = Console.ReadLine(); // n= Juan Perez
Console.WriteLine("Su nombre es: " + n);
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "20"
a = int.Parse(n); // a= 20
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "10"
b = int.Parse(n); // b= 10
r = a + b; // r= 30x
Console.WriteLine("La suma es: " + r.ToString());
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "20"
a = int.Parse(n); // a= 20
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "10"
b = int.Parse(n); // b= 10
r = a - b; // r= 30x
Console.WriteLine("La Resta es: " + r.ToString());
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "20"
a = int.Parse(n); // a= 20
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "10"
b = int.Parse(n); // b= 10
r = a * b; // r= 30x
Console.WriteLine("La Multiplicación es: " + r.ToString());
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "20"
a = int.Parse(n); // a= 20
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "10"
b = int.Parse(n); // b= 10
r = a / b; // r= 30x
Console.WriteLine("La División es: " + r.ToString());
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Consola
{
class Program
{
static void Main(string[] args)
{
int a,b,r;
string n;
// Para mostrar mensajes
Console.WriteLine("Hola como estas, estoy programando en Consola");
Console.WriteLine("Estamos en el taller de programación");
Console.WriteLine("Introduzca su nombre:");
n = Console.ReadLine(); // n= Juan Perez
Console.WriteLine("Su nombre es: " + n);
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "20"
a = int.Parse(n); // a= 20
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "10"
b = int.Parse(n); // b= 10
r = a + b; // r= 30x
Console.WriteLine("La suma es: " + r.ToString());
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "20"
a = int.Parse(n); // a= 20
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "10"
b = int.Parse(n); // b= 10
r = a - b; // r= 30x
Console.WriteLine("La Resta es: " + r.ToString());
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "20"
a = int.Parse(n); // a= 20
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "10"
b = int.Parse(n); // b= 10
r = a * b; // r= 30x
Console.WriteLine("La Multiplicación es: " + r.ToString());
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "20"
a = int.Parse(n); // a= 20
Console.WriteLine("Introduzca un numero por favor: ");
n = Console.ReadLine(); // n= "10"
b = int.Parse(n); // b= 10
r = a / b; // r= 30x
Console.WriteLine("La División es: " + r.ToString());
Console.ReadKey();
}
}
}
martes, 17 de mayo de 2011
contraseñas
<html>
<head>
<title>Cifrar Información</title>
<link href="estilos/main.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="scripts/md5.js"></script>
<script language="javascript">
function Procesar()
{
s1= MD5(document.visible.usuario.value);
s2= MD5(document.visible.contra.value);
alert("usuario:"+s1+"\n"+"contraseña:"+s2);
return false;
}
</script>
</head>
<body>
<div align="center">
<table cellpadding=4>
<caption>Bienvenido<br>DAP Internet I</caption>
<tr>
<td align="center" valign="middle">
<form name="visible" onSubmit="return Procesar()">
<label>Usuario</label>
<br/>
<input type="text" name="usuario" size=20 maxlength=200>
<br/>
<label>Contraseña</label>
<br/>
<input type="Password" name="contra" size=20 maxlength=32>
<br/>
<input type="submit" name="btnAceptar" value="Iniciar">
</form>
<a href="login.html">Otra Vez</a>
</td>
</tr>
</table>
<address> Made By Yanine Aratea © 2011</address>
</div>
</body>
</html>
<head>
<title>Cifrar Información</title>
<link href="estilos/main.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="scripts/md5.js"></script>
<script language="javascript">
function Procesar()
{
s1= MD5(document.visible.usuario.value);
s2= MD5(document.visible.contra.value);
alert("usuario:"+s1+"\n"+"contraseña:"+s2);
return false;
}
</script>
</head>
<body>
<div align="center">
<table cellpadding=4>
<caption>Bienvenido<br>DAP Internet I</caption>
<tr>
<td align="center" valign="middle">
<form name="visible" onSubmit="return Procesar()">
<label>Usuario</label>
<br/>
<input type="text" name="usuario" size=20 maxlength=200>
<br/>
<label>Contraseña</label>
<br/>
<input type="Password" name="contra" size=20 maxlength=32>
<br/>
<input type="submit" name="btnAceptar" value="Iniciar">
</form>
<a href="login.html">Otra Vez</a>
</td>
</tr>
</table>
<address> Made By Yanine Aratea © 2011</address>
</div>
</body>
</html>
divicion
<html>
<head>
<script type="text/javascript">
n=parseInt(prompt("15"," "));
tabla="<table border='1'>";
for(i=1;i<=20;i++)
{
tabla+="<tr>"+"<td>"+(n*i)+"</td>"+"<td>"+"/"+"</td>"+"<td>"+n+"</td>"+"<td>"+"="+"</td>"+"<td>"+i+"</td>"+"</tr>"
}
tabla+="</table>";
document.write(tabla);
</script>
</head>
</html>
<head>
<script type="text/javascript">
n=parseInt(prompt("15"," "));
tabla="<table border='1'>";
for(i=1;i<=20;i++)
{
tabla+="<tr>"+"<td>"+(n*i)+"</td>"+"<td>"+"/"+"</td>"+"<td>"+n+"</td>"+"<td>"+"="+"</td>"+"<td>"+i+"</td>"+"</tr>"
}
tabla+="</table>";
document.write(tabla);
</script>
</head>
</html>
tabla de multiplicacion
<html>
<head>
<script type="text/javascript">
n=parseInt(prompt("15"," "));
tabla="<table border='1'>";
for(i=1;i<=20;i++)
{
tabla+="<tr>"+"<td>"+i+"</td>"+"<td>"+"*"+"</td>"+"<td>"+n+"</td>"+"<td>"+"="+"</td>"+"<td>"+(n*i)+"</td>"+"</tr>"
}
tabla+="</table>";
document.write(tabla);
</script>
</head>
</html>
<head>
<script type="text/javascript">
n=parseInt(prompt("15"," "));
tabla="<table border='1'>";
for(i=1;i<=20;i++)
{
tabla+="<tr>"+"<td>"+i+"</td>"+"<td>"+"*"+"</td>"+"<td>"+n+"</td>"+"<td>"+"="+"</td>"+"<td>"+(n*i)+"</td>"+"</tr>"
}
tabla+="</table>";
document.write(tabla);
</script>
</head>
</html>
domingo, 15 de mayo de 2011
t c 3
J) I.-Escribir las siguientes expresiones a expresiones algorítmicas:
RESPUESTAS
A) raiz2 (pot(a,2)-4*a*c
B) 4/3* π*pot(r,2)
C) (x+y) / (x) – (3 * x) / 5
D) --------------------
E)
G 3 * pot (a+b,2)

F)
H raíz 2 (a+b) / pot (x+y/z,3)

G) 
R1 a-(pot(c*v,3)+1)


H)
R2 X+((a*b+c)/(d+e)) –y

I)
R3 a*b* raiz 2(raíz 2(x)-y/ (x+y))

J)
R4 (x- raíz 2 (y)) / (raix 2 (x+y)) +z

K)
R5 (5/a*b) / c

I .-Encontrar el valor de las siguientes expresiones
RESPUESTAS
A) 2
B) 1
C) 4.33
D) 74
E) 17
F) -31
G) F
H) V
I) 1
J) 0
K) 4
L) 163
M) V
N) F
O) V
P) F
Q) F
III.-E
A)
Z -112

B)
Z 14

C)
Z 4

D)
Z 11.94

E)
Z -12

F)
Z 0

G) Z 3.33
H) Z 6
I) Z -21
J)
K)
Suscribirse a:
Entradas (Atom)