We need to code a program in Python called chineseZodiac.py to calculate the Chinese Zodiac for a given user input as a year number.

We need to code a program in Python called chineseZodiac.py to calculate the Chinese Zodiac for a given user input as a year number.
The Chinese Zodiac is based on a 12-year cycle, and each year in the cycle is represented by an animal in following order:
Monkey
Rooster
Dog
Pig
Rat
Ox
Tiger
Rabbit
Dragon
Snake
Horse
Sheep
The value of (year % 12) determines the zodiac sign. For example, 1900 is the year of the rat, since (1900 % 12) is 4.

Prompt the user to enter a year number as an integer. You need to check for valid input. For example, negative number is invalid.
Print the user’s input and your calculated output to the console as:
Year 1900 is the rat!

Before coding, think how you are going to tackle this problem, and briefly describe the logic of your program.
INSERT YOUR LOGIC DESCRIPTION HERE.

TAKE A SCREENSHOT of your input with output and paste them here.

Complete Answer:

Get Instant Help in Homework Asap
Get Instant Help in Homework Asap
Calculate your paper price
Pages (550 words)
Approximate price: -
Open chat
1
Hello 👋
Thank you for choosing our assignment help service!
How can I help you?