Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,619 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,002 people online right now. Registration is fast and FREE... Join Now!




OOPD Doctor Patient Program

 
Reply to this topicStart new topic

OOPD Doctor Patient Program, I need help!!!!

Snoop
post 28 Mar, 2006 - 07:16 PM
Post #1


New D.I.C Head

*
Joined: 28 Mar, 2006
Posts: 1


My Contributions


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
User is offlineProfile CardPM

Go to the top of the page

Mrafcho001
post 28 Mar, 2006 - 07:31 PM
Post #2


D.I.C Addict

Group Icon
Joined: 1 Nov, 2005
Posts: 753



Thanked 5 times

Dream Kudos: 120
My Contributions


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.
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/23/08 03:17AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month