943,703 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 3561
  • Java RSS
Jul 31st, 2004
0

OO assignment help

Expand Post »
Hi everyone!

My name is Paul

I have an OO project that I need to complete by the 15th of August and I have attempted to start it but i'm now stuck. If anybody can help me in anyway possible I would greatly appreciate it. Please find the specification below. I have attempted to identify the main objects, but i'm not sure if i'm on the right track or not!!

I have been asked to develop a patient record system for a doctors surgery using an object oriented approach, and implemented in the object-oriented language Java. The system should record the following:

* The name and address of each patient,
* Their first choice doctor,
* A list of each visit to the surgery (with date) and type of ailment
* A list of each outcall
* Any drugs prescribed

For each doctor the system should record:

* Name and address
* Surgery hours
* On call hours (for outcalls)
* List of outcalls made (and to whom)

The surgery administrator should be able to list currently available doctors, patients waiting for attention. Drugs prescribed per doctor (or per patient) and patient visits (including prescriptions and ailments.

He/she should also be able to add/remove doctors/patients. Alter surgery/oncall hours, add latest visits.


(i) The first step is to identify the main objects and classes within the written program specification. I have come up with the following list of possible objects:

1 SUR - Surgery (the whole system?)
2 PAT - Patient (used)
3 DOC - Doctor (used)
4 VIS - Visit (within database)
5 DAT - Date (within database and used to book appointment)
6 AIL - Ailment (within database)
7 OUT - Outcall (external, but needed)
8 DRU - Drugs (listed within database)


There is definitely a class for surgery as this is where the appointments are issued, and also a database to store all the appointment times.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
pablo21 is offline Offline
1 posts
since Jul 2004
Aug 6th, 2004
0

Re: OO assignment help

Have you written any code yourself?

We don't do people's homework for them. If you want our help, you need to show some effort, show us what you've written, and somebody here might be able to provide some assistance then.
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Aug 8th, 2004
0

Re: OO assignment help

The best thing to do is start typing .... I think you've got all the idea ... all the classes can be extracted from what you have specified .... and if you are having any trouble in implementing some specific component ... feel free to ask ... someone here will surely help you.
Team Colleague
Reputation Points: 45
Solved Threads: 56
Unauthenticated Liar
nanosani is offline Offline
1,767 posts
since Jul 2004
Jul 29th, 2005
0

Re: OO assignment help

One good way to approach your OO problems is to have a simple class diagram and walk through the class diagram to ensure that you could cover the problem statement using all the classes in the class digram. Also note that the problem statement can be used as the initial source to come up with the class diagram using the "nouns" in it.

John Dirk
Programming Consulant
Programming ( Assignment / Project ) Help
Reputation Points: 10
Solved Threads: 0
Light Poster
proghelper is offline Offline
28 posts
since Jun 2005
Jul 30th, 2005
0

Re: OO assignment help

And BTW, Java variable names can be longer than 3 letters
Reputation Points: 17
Solved Threads: 5
Posting Whiz in Training
mmiikkee12 is offline Offline
274 posts
since Oct 2004
Jul 30th, 2005
0

Re: OO assignment help

Quote originally posted by mmiikkee ...
And BTW, Java variable names can be longer than 3 letters
Agreed 100%

It is always better to use meaningful names as much as possible. There are few thoughts here on Importance of Coding Standards. It also links to the Java coding standard.

-------------
Programming ( Assignment / Project ) Help
Reputation Points: 10
Solved Threads: 0
Light Poster
proghelper is offline Offline
28 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Getting horizontal scrollbars in a JTable
Next Thread in Java Forum Timeline: Getting Cmos Date





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC