Using Java programming language, write the following: Create enumerated data type for Day and Month in its
Question:
Using Java programming language, write the following:
Create enumerated data type for "Day" and "Month" in its own separate file. Then use it to hard code the birth dates (Day - enum, Month - enum, and Year - int) of your top 10 favorite US presidents as president objects stored in a sorted array. Then build a system in which the users enter their date of birth using the enumerated types and check to see if they have the same birth Month as a US president. If they do, also calculate the difference between the user and that president's birth years and report it on the screen as part of a congratulatory message. If they don't match any of them then print a message that they don't exactly match any president's birth date but tell them which president their birth date is closest to.
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill