Question: in java pls (ChineseZodiac.java) Write a program to find out the Chinese Zodiac sign for a given year using an array of strings to store

in java pls

(ChineseZodiac.java) Write a program to find out the Chinese Zodiac sign for a given year using an array of strings to store the animal names. The Chinese Zodiac is based on a twelve-year cycle, with each year represented by an animal: monkey, rooster, dog, pig, rat, ox, tiger, rabbit, dragon, snake, horse, or sheepin this cycle. Note that year % 12 determines the Zodiac sign.

year % 12 =

0: monkey

1: rooster

2: dog

3: pig

4: rat

5: ox

6: tiger

7: rabbit

8: dragon

9: snake

10: horse

11: sheep

For example: 1900 is the year of the rat because 1900 % 12 = 4

Starting code:

// Paul Fodor, 123456789

import java.util.Scanner;

public class ChineseZodiac {

public static void main(String[] args) {

Scanner input = new Scanner(System.in);

System.out.print("Enter a year: ");

int year = input.nextInt();

// To be finished by yo

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!