Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

3rd Edition

0071107010, 978-0071107013

More Books

Students also viewed these Databases questions