OO assignment help

Reply

Join Date: Jul 2004
Posts: 1
Reputation: pablo21 is an unknown quantity at this point 
Solved Threads: 0
pablo21 pablo21 is offline Offline
Newbie Poster

OO assignment help

 
0
  #1
Jul 31st, 2004
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: OO assignment help

 
0
  #2
Aug 6th, 2004
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.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 1,749
Reputation: nanosani is an unknown quantity at this point 
Solved Threads: 54
Team Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

Re: OO assignment help

 
0
  #3
Aug 8th, 2004
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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 28
Reputation: proghelper is an unknown quantity at this point 
Solved Threads: 0
proghelper proghelper is offline Offline
Light Poster

Re: OO assignment help

 
0
  #4
Jul 29th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 274
Reputation: mmiikkee12 is an unknown quantity at this point 
Solved Threads: 5
mmiikkee12's Avatar
mmiikkee12 mmiikkee12 is offline Offline
Posting Whiz in Training

Re: OO assignment help

 
0
  #5
Jul 30th, 2005
And BTW, Java variable names can be longer than 3 letters
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 28
Reputation: proghelper is an unknown quantity at this point 
Solved Threads: 0
proghelper proghelper is offline Offline
Light Poster

Re: OO assignment help

 
0
  #6
Jul 30th, 2005
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC