making simple JAVA prgram

profiledynamijws6z28
2.doc

Problem Description:

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

PAGE

1