Question: Java coding problem Chinese Zodiac Problem. Every 12 years the Chinese calendar is assigned one animal Switch Input : Enter a year Calculations: Use a

Java coding problem

Chinese Zodiac Problem. Every 12 years the Chinese calendar is assigned one animal Switch

Input :

Enter a year

Calculations:

Use a switch statement to switch based on the input using an operation.

If it is 0 Monkey, 1 rooster, 2 dog, 3 pig, 4 rat, 5 OX, 6 Tiger

7 rabbit, 8 dragon, 9 snake, 10 horse, 11 sheep

Output:

The year (xxxx eg:2018) is animal(XXXX eg Dog) year

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!