Question: Write a program that converts dates from a numerical month - day format to alphabetic month - day format. IE 1 / 3 1 or

Write a program that converts dates from a numerical month-day format to alphabetic month-day format. IE 1/31 or 01/31 would have an output of January 31.
User enters the month and day as a single string. It is then converted. (60%)
This should run in a for loop and end when a user is done entering dates
For each valid date, ask for a label for this date (what event it is, like 'George's Birthday' or 'Taco Tuesday'
Write all the dates and their labeled events to a file. This must be done using appropriate techniques from class.
Create a reader class that reads all the data from the file and displays this. This is a separate class and program.
Create 2 exception classes (40%)
MonthException - thrown for invalid months
DayException - thrown for invalid days for the given month
You can assume Feb is always 28 days
Additionally, all classes must follow rules and conventions covered in class. This includes ideas on the topics of inheritance, encapsulation, exceptions, file writting etc.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!