In separate prompt boxes, prompt the user to supply
his/her name and then 3 different words. Save each item in a separate variable. Then, using window.document.write() statements, use the information stored in variables to display a story, i.e. create a few paragraphs of information in story format. To help the user, you may want to provide descriptions of the types of words that you are looking for in each prompt box. Then, in the story, change the starting character of any sentence to bold 2. Create a page that displays five images. When the onMouseOver event is triggered for three of these images, each will display a new image. When the onMouseOut event is triggered each image will return to its original state. The fifth image when rolled over will change all of the other images (these images do not have to be unique) and then will return the images to their previous state. Preload all necessary images. Disable hyperlinks. 3. Create a page with an image in it. This image when clicked will open 5 sub windows. 1 in the top left corner of the screen, 1 in the top right corner, 1 in the lower left corner, and 1 in the lower right corner. Also, open 1 in the center of the screen. The URLs for the window can be of your choosing. When the main window is closed, all of the sub windows should also automatically close. 4. Write a Perl program that analyses text files to obtain statistics on their content. The program should operate as follows:
1) When run, the program should check if an argument has been provided. If not, the program should prompt for, and accept input of, a filename from the keyboard.
2) The filename, either passed as an argument or input from the keyboard, should be checked to ensure it is in MS-DOS format. The filename part should be no longer than 8 characters and must begin with a letter or underscore character followed by up to 7 letters, digits or underscore characters. The file extension should be optional, but if given is should be ".TXT" (upper- or lowercase).
If no extension if given, ".TXT" should be added to the end of the filename. So, for example, if "testfile" is input as the filename, this should become "testfile.TXT". If "input.txt" is entered, this should remain unchanged.
3) If the filename provided is not of the correct format, the program should display a suitable error message and end at this point.
4) The program should then check to see if the file exists using the filename provided. If the file does not exist, a suitable error message should be displayed and the program should end at this point.
5) Next, if the file exists but the file is empty, again a suitable error message should be displayed and the program should end.
6) The file should be read and checked to display crude statistics on the number of characters, words, lines, sentences and paragraphs that are within the file.