Using Switch selector, create a program that will ask the user to enter an integer format of his/her birthdate in the following condition:
• The month should not exceed to 12.
• The number of day should not exceed to 31.
• The year must range from 180 to present.
Otherwise, the program should return “Invalid Date!”
After evaluating the program should give the exact equivalent word of the integer month.
Tips: You can also include, conditional and logical operators and if else selector but make sure that switch selector should be used to evaluate the month.
Sample run 1:
Please enter you birthdate (MM-DD-YYYY): 12-12-2000
Your birthdate is December 12, 2000
Sample run 2:
Please enter you birthdate (MM-DD-YYYY): 38-12-2000
Invalid Month