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 Divisor
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 the two 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 message 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+'" />';
}
Prime factorization Calculator
Create a new web page that allows the user to enter a number into a text field.
 create a function called isPrime() that returns true if parameter is a prime number
 create a function called getPrimeFactorization( num) that returns an array consisting of the prime factors
 the calculator should let the user decide whether or not to
 a) print how many prime numbers there are between 2 and the input
 b) determine whether or not input number is a prime number
 c) print the prime factorization of each number
 to get an A+ use exponent form so that
 primeFactorization( 18 ) = 2* 3^2 (not 2 * 3*3)
