|
That is something you can do in 5minutes, but...
.. I believe that you are not allowed to use any date or calender classes and have to write it on your own, right? Are you allowed to use dynamic structures (lists, dictionaries, ...)? I think that this is not allowed, too.
Models:
1. Make a class called Appointment
Appointment consists of:
String Title
Object Date
Object Time
String Description
2. Make the Date class
Date consists of:
int (or byte) Day
int (or byte) Month
int Year
Optional:
String DayOfTheWeek
int (or byte) NumberOfTheWeek
3. Make the Time class
Time consists of:
int (or byte) Hour
int (or byte) Minute
4. If you are not allowed to use dynamic structures:
AppointmentList
Consists of:
Appointment[] List
with the methods:
Add(Appointment)
Add(int id, Appointment)
Remove(int id)
Optional:
Sort()
Controller:
KeyboardController with ReadString, ReadInt, (ReadByte), GetNewAppointment
IOController with Load, Save, Edit, Delete, Display (which makes your Model to a ViewModel, but I think that this ok for your prof), (SortAscending), (SortDescending), (ExportToCsv)
Views:
Main - Display a menu and uses controllers to get **** done.
|