Programação
CALCULAMÉDIANAITOR
function somaTuto (){ var nome; nome=document.getElementById('aluno').value; var v1; v1=document.getElementById('caixa1').value; var v2; v2=document.getElementById('caixa2').value; var v3; v3=document.getElementById('caixa3').value; var soma; soma=(parseFloat(v1)+parseFloat(v2)+parseFloat(v3))/3; alert('O aluno '+nome+' possui média igual a: '+soma); }
Nome
Nota 1
Nota 2
Nota 3
XABLAU
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
body{ background-color:#ADD8E6 } form{ margin: 100px 40px 10px 70px; font-family:sans-serif,Arial,trebuchet; font-weight:bold; border-width: thick; border-style: solid; border-color: black; height:center; width:center; background:white; float:center;
}
input{ background:#DCDCDC; border-width: 4px; border-style: solid; border-color: black;
}
h1{ font-family:"comic sans";
}
#divi{ border-color:##000000} button{ font-family:sans-serif; font-weight:bold; } h2{ font-family:verdana; color:black; }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//background:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#1e5799), color-stop(50%,#2989d8), color-stop(51%,#207cca), color-stop(100%,#7db9e8)); function calculo1() { var Name; Name=document.getElementById('nome').value; var N1; N1=document.getElementById('not1').value; var N2; N2=document.getElementById("not2").value; var N3; N3=document.getElementById("not3").value; var media; media=(parseFloat(N1)+parseFloat(N2)+parseFloat(N3))/3; alert('O Aluno