<html>
<!-- mathTeacher.html Sandra Magana -->
<!-- This page teaches you simple arithmetric. -->
<!----------------------------------------------------------------->
<head>
<title>Math Teaching Game</title>
</head>
correctCount=0;
count=0;
<script type="text/javascript">
var operand1, operation, operand2, result
function addition()
{
operand1;
operand2;
result;
result= operand1 + operand2
document.getElementById('operand1');
document.getElementById('operand2');
document.write(operand1 + "plus" + operand2 + "equal" + result);
}
function subtraction()
operand1= document.getElementById("operand1").value;
operation= document.getElementById("operation").value;
operand2= document.getElementById("operand2").value;
result= document.getElementById("result").value;
document.getElementById("result").value = result;
function multiplication(operand1, operand2)
{
result= operand1 * operand2
{
return (result)
}
}
function division()
operand1= document.getElementById("operand1").value;
operation= document.getElementById("operation").value;
operand2= document.getElementById("operand2").value;
result= document.getElementById("result").value;
document.getElementById("result").value = result;
</script>
<body>
<p><big> What is: </big> </p>
</body>
<input type="text" id="operand1" size="10" value="" />
<input type="text" id="operation" size="10" value="" />
<input type="text" id="operand2" size="10" value="" />
<input type="text" id="result" size="10" value="" />
<br><input type="button" value="Check Your Answer" onclick="addition();" />
</br>
<p> Number of operations: <input type="text" id="numberofoperation" size="10" value"" />
</body>
</html>
//this is all i have it doesn't work and I am totally lost...Its due by 3 pm can I get any help please
Mod Edit: Please use code tags when posting your code. Code tags are used like so =>
Thanks,
PsychoCoder

New Topic/Question
Reply



MultiQuote




|