Está en la página 1de 4

qwertyuiopasdfghjklzxcvbnmqwe

rtyuiopasdfghjklzxcvbnmqwertyui
opasdfghjklzxcvbnmqwertyuiopa
sdfghjklzxcvbnmqwertyuiopasdfg
rubrica no. 4
hjklzxcvbnmqwertyuiopasdfghjklz
Diseño y Elaboración de Paginas Web

xcvbnmqwertyuiopasdfghjklzxcv
María de Lourdes Esparza Reyes

080260343-1

bnmqwertyuiopasdfghjklzxcvbnm
6101-I

qwertyuiopasdfghjklzxcvbnmqwe
rtyuiopasdfghjklzxcvbnmqwertyui
opasdfghjklzxcvbnmqwertyuiopa
sdfghjklzxcvbnmqwertyuiopasdfg
hjklzxcvbnmqwertyuiopasdfghjklz
xcvbnmqwertyuiopasdfghjklzxcv
bnmqwertyuiopasdfghjklzxcvbnm
qwertyuiopasdfghjklzxcvbnmqwe
rtyuiopasdfghjklzxcvbnmrtyuiopa
<html>
<head> <title> Rubrica No. 4 </title> </head>
<body>
<h1 align = center> <font color = red> rubrica no. 4 </font> </h1>
<form name = operaciones>
<table border = 1 align = center width="600" height="100">
<tr> <td>
<table>
<tr> <td>
<p align = center>
1. <input type = "text" name = val1> <br> <br>
2. <input type = "text" name = val2> <br> <br>
multiplicacion. <input type = "text" name = res1> <br> <br>
<p align = center><input type = "button" name = "mul" value = "realizar multiplicacion" onClick
= "m()"> </p>
</td> <td>
3. <input type = "text" name = val3> <br> <br>
division. <input type = "text" name = res2> <br> <br>
<p align = center> <input type = "button" name = "div" value = "realizar division" onClick = "d
()"> </p>
</td> <td>
4. <input type = "text" name = val4> <br> <br>
resta. <input type = "text" name = res3> <br>
<p align = center> <input type = "button" name = "res" value = "realizar resta" onClick = "r()">
</p>
</td> </tr>
<tr> <td> </td> <td>
<p align = center>
<input type = "submit", name = "b" value = "borrar datos">
</p>
</td>
</tr></table>
</td> </tr> </table>
<table border = 1 align = center width="600" height="100">
<tr> <td>
<br>
<p align = center> capura un numero a comparar con el valor final resultante. </p><br>
<p align = center> valor entrante: <input tye = "text" name = "ent"> </p>
<p align = center>
<br> <input type = "button" value = "comparar" onClick = "comp()">
</p>
<br>
</td> </tr> </table>
</form>
<h1 align = center> Binomio & Trinomio </h1>
<form name = "fc">
<table border = 1 align = center width="600" height="100">
<tr> <td>
Da un valor a la "x" para resolver el siguiente binomio:
<br> x<sup>2</sup>+14 <br>
valor de x: <input type = "text" name = "valbi"> <br>
resultado: <input type = "text" name = "resbi">
<br> <br> <br>
Da un valor a la "x" para resolver el siguiente trinomio:
<br> x<sup>2</sup>-2x-x<br>
valor de x: <input type = "text" name = "valtri"> <br>
resultado: <input type = "text" name = "restri">
</td> <td>
<p align = center>
<input type = "button" value ="resolver binomio" onClick = "lulu()">
<br> <br> <br> <br> <br> <br>
<input type = "button" value ="resolver trinomio" onClick = "mary()"> </p>
</td> </tr> </table>
</form>
<SCRIPT languaje="JavaScript">
function m()
{
var x1 = 0;
var x2 = 0;
var r1 = 0;
x1 = document.operaciones.val1.value;
x2 = document.operaciones.val2.value;
r1 = x1*x2;
document.operaciones.res1.value = r1;
}
function d()
{
var x3 = 0;
var r2 = 0;
var r11 = 0;
x3 = document.operaciones.val3.value;
r11 = document.operaciones.res1.value;
r2 = r11 / x3;
document.operaciones.res2.value = r2;
}
function r()
{
var x4 = 0;
var r21 = 0;
var r3 = 0;
x4 = document.operaciones.val4.value;
r21 = document.operaciones.res2.value;
r3 = r21 - x4;
document.operaciones.res3.value = r3;
}
function comp()
{
var c1 = 0;
var c2 = 0;
c1 = document.operaciones.res3.value;
c2 = document.operaciones.ent.value;
if (c1>c2)
{
alert ("El valor resultante es mayor que el entrante");
for (var x = c1; c>0; c--)
{
document.write ("Numero: ", c1)
}
}
if (c2>c1)
{
alert ("El valor entrante es mayor que el resultante");
for (var x = c2; c>0; c--)
{
document.write ("Numero: ", c2)
}
}
}
function lulu()
{
var z=0;
var t = 0;
z=document.fc.valbi.value;
t=z*z+14;
document.fc.resbi.value=t;
}
function mary()
{
var k = 0;
var q = 0;
k=document.fc.valtri.value;
q=k*k-2*k-k;
document.fc.restri.value=q;
}
</SCRIPT>
</body>
</html>

También podría gustarte