You are on page 1of 5

COLEGIO DE EDUCACION PROFECIONAL TECNICA DEL ESTADO

DE CHIHUAHUA.

PROFECIONAL TECNICO EN BACHILLER EN INFORMATICA.

RODRIGUEZ GONZALEZ FRANCISCO.

RUBRICA 4.

GRUPO 6101 MATRICULA 080260490-0


<html>
<head><title>rubrica 4</title>
<body BGCOLOR="INDIGO">
<h1 align="center"><FONT COLOR="GOLD">Rubrica 4</FONT></h1>
<form name=mul>
numero<input type="text"name="val1" size="3">
por<input type="text"name="val2" size="3">
resultado<input type="text"name="mult" size="3">
<br>
dividirlo<input type="text"name="val3" size="3">
resultado<input type="text"name="div" size="3">
restarle<input type="text"name="val4" size="3">
<br>
el resultado es<input type="text"name="res" size="3">
<br><br><br>
<input type="submit"name="bor"value="borrar">
<input type="button"name="cal"value="calcular"onClick="A()">
<HR>
<h2 ALIGN="CENTER"><FONT COLOR="GOLD">COMPARACION</FONT></h2>
Introduce un valor<input type="text"name="val5" size="3"> Resultado<input
type="text"name="re" size="3">
</font>
<script language="JavaScript">

function A()

var mult=0;

mult=document.mul.val1.value*document.mul.val2.value;

document.mul.mult.value=mult;
var div=0;
div=document.mul.mult.value/document.mul.val3.value;
document.mul.div.value=div;
var res=0;
res=document.mul.div.value-document.mul.val4.value;
document.mul.res.value=res;
document.mul.re.value=res;
var a=document.mul.val5.value;
var b=document.mul.re.value;
if(a>b)
{

for(var a=b;a>b;a--)
{
Document.write(a);
}
}
else
{
}

</script>
<H2 ALIGN="CENTER"><FONT COLOR="GOLD">BINOMIO</FONT></h2>
<form name="binomio">
valor 1<input type="text" name="x">pototencia<input type="text" name="p">resultado<input
type="text" name="resu">
<br>
<input type="button"name="cal"value="calcular"onClick="bino()">
</form>
<script language="JavaScript">

function bino()

{
var c=0;
var d=0;
c=document.binomio.x.value;
d=document.binomio.p.value;
for(var x1=2;x1<=y;x1++)
{
x=x*document.binomio.x.value;
}
document.binomio.resu.value=x-6;
}

</script>
<hr>
<h3 ALIGN="CENTER"><FONT COLOR="GOLD">TRINOMIO</FONT></h3>
<form name="trinomio">
valor a<input type="text" name="a">valor b<input type="text" name="b">
<br>
Resultado<input type="text" name="resultado">
<input type="button"name="cal"value="calcular"onClick="tri()">
</form>
<script language="JavaScript">

function tri()

{
var a=document.trinomio.a.value;
var b=document.trinomio.b.value;
var r=0;
r=((a*a)+2*(a*b)*(b*b));
document.trinomio.resultado.value=r;
}

</script>
</body>
</html>

You might also like