The Chinese zodiac sign is based on a 12-year cycle, and each year in this cycle is represented by an animal – monkey, rooster, dog, pig, rat, ox, tiger, rabbit, dragon, snake, horse, and sheep....


The Chinese zodiac sign is based on a 12-year cycle, and each year in this cycle is represented by an animal – monkey, rooster, dog, pig, rat, ox, tiger, rabbit, dragon, snake, horse, and sheep.


•Write a C++ program (named practice5.1.2.Zodiac.cpp) that prompts the user to specify a year, and then it displays the animal for that year.

•In the program, use an array of strings to store the animals’ names. Accept a year as positive integer only.


Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here