COSC 106 A Lab Exercise for Chapter 8
In a file named oldmac.htm, use JavaScript prompts and document writes to:
  1. Ask the user for their first name.
  2. Using their name in the prompt, ask them for a farm animal, so the prompt should be something like:
    prompt window

  3. Using their name and the farm animal in the prompt, ask them what sound it makes.
    prompt window
  4. Prints out a line (followed by a linebreak) colored red, similar to:

          Tom's verse of Old MacDonald:

    Note, the user's name should be used in this line.
  5. Prints out a verse of the Old MacDonald song, using their animal and their animal sound, including the line-breaks (and below the line from part (4), but NOT in red):
Old MacDonald had a farm, E I E I O,
and on his farm he had a cow, E I E I O.
With a moo-moo here and a moo-moo there,
here a moo, there a moo, everywhere a moo-moo.
Old MacDonald had a farm E I E I O.