Posted on 2000-04-18
1 Write a program in perl that prompts and restricts the user to any year between 1900
and 2099, and for that year prints the sign of the Chinese Zodiac. Your
solution can only use "if-elsif-else" type statements to implement the
selections. There are twelve signs in the Chinese Zodiac and they are,
Rat, Ox, Tiger, Rabbit, Dragon, Snake, Horse, Goat, Monkey, Rooster, Dog, Pig
In addition, the Cat is used instead of the Rabbit in Vietnamese culture. If
the year maps to Rabbit, print both.
This sequence, starting with Rat, begins in the year 1900. As a test, this
year, 2000 is Year of the Dragon.