Improve your appointment program by giving the user the


A. Implement a superclass called Appointment and subclasses OneTime, Daily, Weekly, and Monthly. An Appointment has a description (for example, â€Å"Meet with interviewer about jobâ€) and a date and time. Write a method occursOn(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then, in a TestAppointment class, fill an array of Appointment objects with a mixture of different kinds of appointments. Ask a user to enter a date and print out all appointments that occur on that date.

B. Improve your Appointment program by giving the user the option to add new Appointments. The user must specify the type of the appointment, the description, and the date and time.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Improve your appointment program by giving the user the
Reference No:- TGS0662088

Expected delivery within 24 Hours