Program that displays the chinese zodiac for the year


Write a program that prompts the user to enter the year and displays the Chinese Zodiac for the year. The Chinese Zodiac is based on a twelve year cycle, each year being represented by an animal: rat, ox, tiger, rabbit, dragon, snake, horse, sheep, monkey, rooster, dog, and pig, in this order. Note 1900 is the year of rat. Here are some sample runs:

Here are sample runs of the program:

Sample 1:
Enter a year: 1963
rabbit

Sample 2:
Enter a year: 1877
ox

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Program that displays the chinese zodiac for the year
Reference No:- TGS0537250

Expected delivery within 24 Hours