Question: Java program: Chinese Year Create a program that will let the user enter his birthday. (Use any method you think is best.) If the user
Java program: Chinese Year Create a program that will let the user enter his birthday. (Use any method you think is best.) If the user enters a valid date (use any method you want to verify that the date is valid) display the following information: This program must be done using functions and arrays with a minimum of code in main. The season in which he or she was born His Chinese year (dragon, boar, etc.)(This is an array problem using the year % 12) If the year % 12 is year%12 Year of the 0 monkey 1 rooster 2 dog 3 pig 4 rat 5 ox 6 tiger 7 rabbit 8 dragon 9 snake 10 horse 11 sheep Aside from using arrays and functions, this project is important because it is complex enough that you must write it one step at a time. You can start with any step you understand, but this is an example. You may start with an array of the Chinese zodiac signs, then input a year and print the sign. You may start by assuming that the date is valid, then test for a valid date later, but this must be part of the final program. Check that the month is between 1 and 12 Check that the number of days is valid for the month. Of particular concern is Feb. 29. This is valid only if the year is a leap year. A year is a leap year if it is divisible by 4, but not by 100, unless it is also divisible by 400.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
