Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
<title>Primer Ejercicio</title>
</head>
<body>
<script type="text/javascript">
var nombre;
document.write("Bienvenido..." + nombre);
document.write("...a este prgrama");
</script>
</body>
</html>
<title>2)suma</title>
</head>
<body>
<script type="text/javascript">
var n1;
var n2;
n1=prompt ("por favor digite el primer numero");
n2=prompt ("por favor digite el segundo numero");
var suma=num1+num2;
</script>
</body>
</html>
<title>3)resta</title>
</head>
<body>
<script type="text/javascript">
var n1;
var n2;
var r=num1-num2;
<title>4)multiplicacion</title>
</head>
<body>
<script type="text/javascript">
var n1;
var n2;
var m=num1*num2;
<title>5)division</title>
</head>
<body>
<script type="text/javascript">
var n1;
var n2;
var d=num1/num2;
</head>
<body>
<script type="text/javascript">
var num1;
var num2;
num1=prompt ("Por favor digite el primer numero (Debe tener en cuenta que
los numeros que va a digitar sean enteros)");
num2=prompt ("Por favor digite el segundo numero (Debe tener en cuenta que
los numeros que va a digitar sean enteros)");
var R= num1/num2
</script>
</body>
</html>
</head>
<body>
<script type="text/javascript">
var num1;
var num2;
var R= num1%num2
</script>
</body>
</html>
</head>
<body>
<script type="text/javascript">
var num;
var C= num*num;
</script>
</body>
</html>
</head>
<body>
<script type="text/javascript">
var num;
var Raiz= ;
</script>
</body>
</html>
<title>10) Potencia</title>
</head>
<body>
<script type="text/javascript">
var num1;
var num2;
</script>
</body>
</html>
<title>11) Ejes</title>
</head>
<body>
<script type="text/javascript">
var x;
var y;
var y= x;
</script>
</body>
</html>
<title>12)</title>
</head>
<body>
<script type="text/javascript">
var x,c,z,a,i;
for (i=0;i<a;i++) {
x =prompt("Ingrese el valor de X");
z=x+c;
document.write("el resultado es: " +z);
</script>
</body>
</html>
<html>
<head>
<title>13)</title>
</head>
<body>
<script type="text/javascript">
var a,b,c,x1,x2,rc;
document.write("<BR>");
document.write("<BR>");
document.write("<BR>");
document.write("<BR>");
x1=(-b+(sqrt(b*b-4*a*c)))/(2*a);
document.write("<BR>");
x2=(-b-(sqrt(b*b-4*a*c)))/(2*a);
</script>
</body>
</html>
<title>16)Notas</title>
</head>
<body>
<script type="text/javascript">
var NE;
var NQ;
var NP;
var NEXP;
var TI;
var TG;
NE=NE*0.5;
NQ=NQ*0.05;
NP=NP*0.1;
NEXP=NEXP*0.15;
TI=TI*0.08;
TG=TG*0.12;
NF= NE+NQ+NP+NEXP+TI+TG
</script>
</body>
</html>
<title>17)Espacio recorrido</title>
</head>
<body>
<script type="text/javascript">
var v;
var t;
var esp;
v=prompt ("Por favor Digite la velocidad del cuerpo, recuerde que debe ser
digitado en mts/seg");
t=prompt ("Por favor Digite el tiempo, por favor en Segundos");
esp=v*t;
document.write("EL espacio recorrido del cuerpo es:" +esp);
</script>
</body>
</html>
var vi;
var t;
var a;
var e;
vi=prompt ("Por favor Digite la velocidad inicial del cuerpo, recuerde que debe
ser digitado en mts/seg");
a=prompt ("Porfavor Digite la aceleracin del cuerpo, recuerde que debe ser
digitado en mts/seg^2");
t=prompt ("Por favor Digite el tiempo, por favor en Segundos");
e=vi*t+(1/2)*a*(pow(t,2));
var c;
var k;
var f;
k= c+273.15;
f=c*18000+32;
</script>
</body>
</html>
<title>20)tiempo transcurrido</title>
</head>
<body>
<script type="text/javascript">
var s;
var h;
var m;
h=s*0.000277777778;
m= s*0.016666667;
document.write("el tiempo transcurrido en horas es::" +h);
document.write("el tiempo transcurrido en minutos es::" +m);
</script>
</body>
</html>
INVENTADO
Realice un algoritmo que permita calcular la velocidad final de un cuerpo, para ello
utilizaremos la formula de movimiento de cada libre que es vf=vo+g*t, donde se
pida al usuario la velocidad inicial y el tiempo
<html>
<head>
<title>5)division</title>
</head>
<body>
<script type="text/javascript">
var t;
var vo;
var g=9.81
var vf=vo+g*t;
document.write("la velocidad final del cuerpo es::" +vf);
</script>
</body>
</html>