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

C++ Programming Code a switch statement to solve the following problem -

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

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!