1 Replies - 1394 Views - Last Post: 28 March 2006 - 08:31 PM Rate Topic: -----

#1 Snoop  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 28-March 06

OOPD Doctor Patient Program

Posted 28 March 2006 - 08:16 PM

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....

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 March 2006 - 10:18 AM


Is This A Good Question/Topic? 0
  • +

Replies To: OOPD Doctor Patient Program

#2 Mrafcho001  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 40
  • View blog
  • Posts: 769
  • Joined: 01-November 05

Re: OOPD Doctor Patient Program

Posted 28 March 2006 - 08:31 PM

Show us some code you've done. And be specific with what you need help with. We won't code this for you, its your assignment.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1