Create a program that will ask the user the type a year and display the Chinese Zodiac animal for the entered year. The program should:  Ask the user to enter a year and save the entered year in a variable as an integer. The year as to be between 1936 and 2050. If the user entered a year that is not within the range, the program will display an invalid message as: is an invalid year  On the other hand, if the year is between 1936 and 2050, then the program will use the following formula to find the remainder of the year: (year-1936)%12 Using the formula above, it should provide you 12 different remainders.  After it, use the following table to display the message according to the remainder: Remainder Message 0 Year ______ is the year of Rat 1 Year ______ is the year of Ox 2 Year ______ is the year of Tiger 3 Year ______ is the year of Rabbit 4 Year ______ is the year of Dragon 5 Year ______ is the year of Snake 6 Year ______ is the year of Horse 7 Year ______ is the year of Goat 8 Year ______ is the year of Monkey 9 Year ______ is the year of Rooster 10 Year ______ is the year of Dog 11 Year ______ is the year of Pig Template When run the program, it will ask the user to type a year If the user types 1990 and hits Enter, the program will calculate the remainder using the entered year and show a message according to the table above

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Create a program that will ask the user the type a year and display the Chinese Zodiac animal for
the entered year.
The program should:
 Ask the user to enter a year and save the entered year in a variable as an integer. The year
as to be between 1936 and 2050. If the user entered a year that is not within the range, the
program will display an invalid message as:
is an invalid year
 On the other hand, if the year is between 1936 and 2050, then the program will use the
following formula to find the remainder of the year:
(year-1936)%12
Using the formula above, it should provide you 12 different remainders.
 After it, use the following table to display the message according to the remainder:
Remainder Message
0 Year ______ is the year of Rat
1 Year ______ is the year of Ox
2 Year ______ is the year of Tiger
3 Year ______ is the year of Rabbit
4 Year ______ is the year of Dragon
5 Year ______ is the year of Snake
6 Year ______ is the year of Horse
7 Year ______ is the year of Goat
8 Year ______ is the year of Monkey
9 Year ______ is the year of Rooster
10 Year ______ is the year of Dog
11 Year ______ is the year of Pig
Template
When run the program, it will ask the user to type
a year
If the user types 1990 and hits Enter, the program
will calculate the remainder using the entered year
and show a message according to the table above

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education