Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Chinese Zodiac is based on a 1 2 - year cycle. Each year within a 1 2 - year period is represented by a

The Chinese Zodiac is based on a 12-year cycle. Each year within a 12-year period is
represented by a different animal. The first year (i.e. year 0) is the year of the monkey,
with the second year (i.e. year 1) being the year of the rooster. This continues until the
13th year (i.e. year 12), which goes back to monkey. Write a program that prompts the
user to enter a year and outputs the animal in the Chinese Zodiac for the year. There is
an image to show the Chinese Zodiac signs and some of the years. Note that you will
need it to work for any year, not just the ones listed in the image below.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions