Question: Write a program that asks the user to enter a year. The program should then indicate the type of year it is based on the

Write a program that asks the user to enter a year. The program should then indicate the type of year it is based on the Chinese Zodiac. The order of the Chinese Zodiac shown below is based on a 12-year cycle. The first zodiac corresponds to years divisible by 12 (remainder 0), the second year corresponds to years that a produce a remainder of 1 and so on. For instance, 2017 is the year of the rooster because 2017 divided by 12 produces a remainder of 1. Monkey Rooster Dog Pig Rat Ox Tiger Rabbit Dragon Snake Horse Sheep You will need: 1. A scanner object for input 2. A variable to store the year entered 3. A switch statement to select the appropriate zodiac sign 4. Comments for appropriate documentation A sample of the output is shown below: Enter a year: 1979 The year 1979 is the year of the sheep
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
