making simple JAVA prgram

profiledynamijws6z28

 

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

 

 

  • 12 years ago
  • 10
Answer(1)

Purchase the answer to view it

blurred-text
NOT RATED
  • attachment
    program2.java
Bids(0)