myoreorex
asked on
program problem
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,
in order:
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.
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,
in order:
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Michelle