------------------------------------------------------------------------------- Michael Locasto Introduction to Computers Extra Credit Spring 2006 $Id: extra-credit-hw.txt,v 1.1 2006/02/27 21:29:14 locasto Exp $ ------------------------------------------------------------------------------- Due: March 28, 11:59:59 PM EST (Courseworks timestamp) 0) Word Statistics. (35 points) Create a small Javascript program that takes an unspecified amount of input from the user and creates a histogram of character frequencies. Something akin to this chart is appropriate: 8% 1% 1% 4% 12% 2% 2% 6% 6% 0% 1% 4% 2% 7% 7% 1% 0% 5% 6% 8% 2% 0% 2% 0% 2% 0% ---------------------------------------------------------------------------- 20 | | | | | 15 | | | | * | * 10 | * | * | * * * | * * * * * | * * * * * * * * 5 | * * * * * * * * * | * * * * * * * * * * * | * * * * * * * * * * * | * * * * * * * * * * * * * * * * * | * * * * * * * * * * * * * * * * * * * * * 0 | * * * * * * * * * * * * * * * * * * * * * * * * * * ---------------------------------------------------------------------------- A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Your program does not need to distinguish between capitalized and lower case letters. You may either use the prompt() function or an HTML form to grab input from the user. There are examples in your book of how to do the latter method of input. 1) Hangman. (40 points) Implement the game of hangman.