Question: Write a VBA program to find out the Chinese Zodiac sign for a given year. This is based on a 12-year cycle, with each year
Write a VBA program to find out the Chinese Zodiac sign for a given year. This is based on a 12-year cycle, with each year represented by an animal in this predefined order: Monkey, Rooster, Dog, Pig, Rat, Ox, Tiger, Rabbit, Dragon, Snake, Horse and Sheep. Given that Year 1900 is the year of the Rat. Requirements: 1. Accept Year from InputBox(); 2. Use array programming method to complete this assignment question; 3. Convert the Year information to the corresponding Chinese Zodiac sign; 4. Display the result in a MsgBox()
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
