Question: C++ Programming Code a switch statement to solve the following problem - the 12 year animal cycle in the Chinese calendar is rat, ox, tiger,
C++ Programming

Code a switch statement to solve the following problem - the 12 year animal cycle in the Chinese calendar is rat, ox, tiger, rabbit, dragon, snake, horse, ram, monkey, rooster, dog, and boar. The year 1900 was the year of the rat so you can compute any year after that by calculating the offset (in multiples of 12 - use %) of that year from 1900. Input a year and print the corresponding Chinese year for any year > = 1900
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
