Question: Make sure to add comments to the code . The Chinese Zodiac year is usually found based on twelve year cycle. Write a Matlab script

Make sure to add comments to the code .The Chinese Zodiac year is usually found based on twelve year cycle.

The Chinese Zodiac year is usually found based on twelve year cycle. Write a Matlab script that prompts the user to enter a year. The program should call a method called getZodiac that returns the name of the year. Zodiac year is based on the following table: 0 Monkey 1 Rooster 2 Dog 3 Pig 4 Rat 5 Ox 6 Tiger 7 Rabbit 8 Dragon 9 Snake 10 Horse 11 Sheep Enter Year: 1963 Zodiac year is Rabbit Enter Year : 1877 Zodiac year is Ox

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 Programming Questions!