[Overview] [Basics] [More] [Fun] [Class 2] [If] [Functions] [Timing] [Queries] [References] [Examples] [Libraries] [Assignments]
Purpose: The goal of this assignment is to get you accustomed to working with JavaScript in your pages and to help you explore Java's string operations.
In this assignment, you will attempt to implement Shirley Ellis's legendary ``Name Game''.
Write an HTML page with accompanying JavaScript that reads in the user's name and then prints out the corresponding verse of ``The Name Game''. For example, if the user entered ``Nick'', the page would print
Nick, Nick bo Bick
Banana Fanna Fo Fick
Mee Mi Mo Mick
Nick
If you don't remember the rules to the name game, make up your own. Recall that some names are treated differently (e.g., Bob, which begins with ``B'' which is used as a modifier in the first stanza).
If you'd prefer, you may instead want to do the introductory assignment. If you're feeling really adventuresome, consider the advanced assignment.
[Overview] [Basics] [More] [Fun] [Class 2] [If] [Functions] [Timing] [Queries] [References] [Examples] [Libraries] [Assignments]
Source text written by Samuel A. Rebelsky.
This page may be found at http://www.math.grin.edu/~rebelsky/Tutorials/JavaScript/Spring1999/Assignments/medium1.html
Source text last modified Mon Apr 12 12:41:23 1999.
This page generated on Mon Apr 12 12:47:29 1999 by SiteWeaver. Validate this page's HTML.