Home
Site Map
Useful Tools
Graphing Calc
Scientific Calculator
|
Factorization Calculator
Create a new web page that allows the user to enter a number into a text field. Then print out all of its factors with commas in between it.
-
The text field should ensure that only numbers are entered (no other characters)
- If the user types an improper message then show them an error message ie
alert("invalid input")
- Otherwise show the factors.
- Final product should resemble this factorization calculator
Greatest Common Divsor
Create a new web page that allows the user to enter a number into 2 different text field. Then print out the greatest common divisor of thet wo numbers.
-
Both text field should ensure that only numbers are entered (no other characters)
- If the user types an improper message then show them an error message ie
alert("invalid input")
- Otherwise show the greatest common divisor.
- Final product should resemble this factorization calculator
Arithmetic mean Calculator
Create a new web page that allows the user to enter up to 6 numbers. This page should have 6 text fields, one button and one div to display the answer. Like the prior project, you should not let the user enter anything other than numbers . Instead of showing a mesage in an alert box. Display error messages by hiding and showing a div.
Arithmetic mean Calculator of N numbers.
var h='';
for( var i = 0 ;i< n ;i++){
h += '<input type="text" id="text'+i+'" />';
}
|