Make these:
A JavaScript program that determines the least common multiple of an arbitrary pair of positive integers. For example, for inputs 16 and 20, your program should output 80.
A JavaScript program that determines the real root(s) of any quadratic equation, i.e., an equation of the form a*x*x + b*x + c = 0. The inputs will be the coefficients a, b, and c. Note that some a-b-c-triples imply an equation with no real roots (e.g., 12*x*x + 2*x + 3.1216 = 0.0), or an equation with only one real root (-5*x + 10 = 0), etc. Can you identify any other "edge" cases?
A JavaScript program that determines whether a given string contains repeated characters. For example, for input xylophones, your program should output repeated character, but for input dumbwaiter, your program should output no repeated characters. Note that, as characters, lower-case letters are different than their upper-case versions; so, for input WheELS, your program should output no repeated characters.
A JavaScript program that "alphabetically respells" any given string. For example, for input xylophones, your program should output ehlnoopsxy.
To submit your programs, "publish" them on your website. In particular, put links on your home page to Least Common Multiples, Quadratic Equations, Repeated Characters, and Alphabetical Spelling. So, for example, if I were click on your Quadratic Equations link, it would start up that script.
Revised at 17:38 on 14 October 2009