This is the info i was given:
Patients
-Size:int
-Capacity:int
-patientsArray:Patient
-visitsArray:Visits
-visitsArray:Visits
-appointmentArray:Appointments
+getSize():int
+getCapacity():int
+setSize():void
+loadPatientsFromFile():void
+savePatientsArrayToFile():void
+loadPatientsFromFile():void
+saveVisitsToFile():void
+loadVisitsFromFile():void
+saveAppointmentsToFile:void
+loadAppointmentsFromFile():void
....I have to add more.......
Patient
-patientID:int
-Name:string
-DOB:TDate
+getName()
+getAge()
...I have to add more....
Appointments
-patientID:int
-appointmentID:int
-appointmentDate:TDate
-appointmentTime:TTime
-status:char
+getDate():TDate
...I have to add more...
Visits
-patientID:int
-visitID:int
-visitDate:
-owing:double
-payment:double
+getDate:TDate
I need help too with the coding for the implementation for this problem.
This is what i have so far....
CODE
class TDate
{
int month;
int day;
int year;
public:
//Constructors
Date()
{month=day=year=0;}
Date(int m, int d, int y)
{month=m; day=d; year=y;}
//Accessor Functions
int get_month()const
{return month;}
int get_day()const
{return day;}
int get_year()const
{return year;}
};
class TTime
{
int hour;
int minute;
public:
};
This post has been edited by Dark_Nexus: 29 Mar, 2006 - 09:18 AM