Hay Friends...
Here I started a new and interested thread. I hope you also enjoy it. I got a task to creat a Hospital Database in Java. But I don´t have any good clues abouts it. So I also try my best to do it well. But here I posted it for friends too. If you have any perfect idea or correct code about it, so Please send it. I shall wait for your nice comments and help.
Here I also explain about my task..........H ospital Database
Hay friends....I don´t have any good idea about interesting pictures here because I also want to interest some dialogue box pictures.
Objects of Programming
Course Project
Scenario
You are working for a bio-informatics company called unCode GeneTicks. Your project manager has a small hospital database storing information about patients and how severe they are experiencing skin and circulation problems on the arms, legs and head on a scale of 0..3(See addendum Patients.txt) This database also has information about candidate genes responsible for the illnesses. Patients are labelled as having one of gene 1, 2 or 3 (g1, g2, g3) in the hospital database. As your first task for unCode GeneTicks you have been asked to write an analyser program to analyse the data, and to write a report on your findings.
Program Requirements
Program should:
• Produce histogram plots showing patient counts in six divisions, each gene group being separately considered for skin and circulation problem. See the example dialogue in the addenda.
• Allow the user the choice of threshold level (>=0, >=1, >=2, >=3) from a combo box when counting patients e.g. count is registered if the threshold value is equalled or higher for every skin measure (or every circulation measure)
• Define a Patient class in which all data are kept private and readable only through ‘get’ methods. This class must:
o Implement the provided HospitalPatient interface
o Define a toString() method
o Define an equals() method
• Define a Patients class which has a LinkedList of Patients along with necessary methods to create that list and retrieve relevant information from it.
• Define a PatientPanel class which inherits from the JPanel class, and contains the paintComponent method for drawing the histograms.
o Frames with this panel should be able to be closed by the end user without quitting the application.
• Define a ControlPanel class which inherits from the JPanel class. This is the main graphical user interface of the program. It should include the following components:
o A label for instructions to the end user
o A combo box for selecting the threshold level
o A pair of radio buttons for selecting whether head data is to be included
o A button to create a new window with the chosen histogram
• Defina a PatientAnaliser class which is the start point of the program. This class should:
o Create an object of Patients
o Have that object open and read the text file Patients.txt
o If that was successful it should display the main GUI of the program
o If the file was not found it should show a dialog box stating this information
o If there was any problems with reading the file it should show a dialog box stating this information.
Addenda
HospitalPatient .java
public interface HospitalPatient
{
public String getGeneID();
public int getArmsSkin();
public int getArmsCirc();
public int getLegsSkin();
public int getLegsCirc();
public int getHeadSkin();
public int getHeadCirc();
}
Patients.txt
<geneID><arms skin><arms circ><legs skin><legs circ><head skin><head circ>
g1 1 0 1 0 0 0
g1 0 1 0 1 0 1
g1 0 1 0 0 1 1
g1 0 0 0 1 1 1
g1 0 0 1 1 1 1
g1 0 1 1 1 1 1
g1 1 0 1 1 1 1
g1 1 1 1 0 0 0
g1 1 1 0 1 0 0
g1 1 1 1 0 0 0
g1 1 1 1 1 0 0
g1 0 1 1 1 1 0
g1 1 0 1 0 1 0
g1 0 1 0 1 0 1
g2 1 2 1 2 1 1
g2 1 2 1 2 1 2
g2 1 1 1 1 2 2
g2 1 1 1 2 2 2
g2 1 1 2 2 2 2
g2 1 2 2 2 2 2
g2 2 2 2 2 2 2
g2 2 1 1 1 1 1
g2 2 2 1 1 1 1
g2 2 2 2 1 1 1
g2 2 2 2 2 2 1
g2 2 2 2 1 2 2
g2 1 2 1 2 1 2
g2 2 1 2 1 2 1
g3 2 3 3 3 1 1
g3 2 2 2 2 2 3
g3 2 3 2 3 2 2
g3 2 3 2 3 3 2
g3 2 2 2 3 3 3
g3 3 3 2 3 3 2
g3 2 3 3 3 3 3
g3 3 3 2 3 2 2
g3 3 3 2 3 2 2
g3 3 3 2 3 2 2
g3 3 3 2 3 2 2
g3 2 3 3 3 3 2
g3 2 3 3 3 3 2
g3 2 3 3 3 3 2
5 2661
Boy, that question sounds pretty "heavy". Check out this post about the type of question you have. Perhaps if you focused on a smaller part of this problem, and a specific issue you have it, thescripts could help out.
horace1 1,510
Recognized Expert Top Contributor
build the program component by component,, e.g.
1. design, implement and test a Patient class, when it is working
2. design, implement a Patients class
etc etc
in this way you build up to a complete system - by thorough testing as you go along the components should work correctly when they are put together.
Thanks rickumali and horace1 bro............ .Thanks alot.......But today i started my practice about my this Hospital Database since from morning........ ..and Thanks God i succeeded alot but the problem which still have a headache for me is that, that how i make a histogram by reading data from text file........... ..
I also succeeded in reading data from text file but making is a histogram according to the data in the text file is much difficult...... ........
If someone have any idea about this stupid histogram...... ......so I shall wait for ur kind replies........ ....
Thanks rickumali and horace1 bro............ .Thanks alot.......But today i started my practice about my this Hospital Database since from morning........ ..and Thanks God i succeeded alot but the problem which still have a headache for me is that, that how i make a histogram by reading data from text file........... ..
I also succeeded in reading data from text file but making is a histogram according to the data in the text file is much difficult...... ........
If someone have any idea about this stupid histogram...... ......so I shall wait for ur kind replies........ ....
As you would do it manually on a piece of paper. Once you get the data nicely scaled you can use swing to draw the histogram or make some representation of it on the console
hello
i have a project now about doing a db in java for a hospital
so plz if u completed ur project successfuly plz can u send it 2 me it will really be alot of help for me
my email is <removed>
thanx alot
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Gary Stollman |
last post by:
My Father is a Clone//ETs plotting to overthrow the human race!
On August 19, 1987 a gun-carrying Gary Stollman entered the studio of Los
Angeles's KNBC television, crashing consumer reporter David Horowitz's live
newscast. Stollman handed Horowitz a written statement and ordered him to read
it while holding a gun on him. Unbeknownst to Stollman, KNBC immediately
switched to a commercial, not permitting the statement to be transmitted. ...
|
by: mr.iali |
last post by:
Hi Everyone
I would like to get into software developent using a programming
language like c++, java or pl/sql for oracle.
I have no idea where to start from. Which language is there more demand
for. Looking at jobs there seems to be a better chance in getting a
java job rather than a oracle or c++ job.
Also is java and oracle a good combiantion?
|
by: Marvin Libson |
last post by:
Hi All:
I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I
have created a java UDF and trigger. When I update my database I get
the following error:
SQL1224N A database agent could not be started to service a request,
or was
terminated as a result of a database system shutdown or a force
command.
|
by: nihad.nasim |
last post by:
Hi there,
I have a database in Access that I need on the web. The web page
should connect to the database and write records for certain tables
and view records for others. I want to know a reliable way of
connecting Access to a server. I am willing to switch to any version
of Access which might solve the problem. Which server would you
recommend and what are the advanatages and disadvantatges of the
server you propose? Please also inlcude...
|
by: jej1216 |
last post by:
I have a form in which a select field lists 5 items pus the option of "Other." I want a text field to be hidden unless the select field value is "Other."
The form is HTML, but I am assuming that I need to accomplish this with Javascript. Sample HTML code follows for the select field and the following text field.
<td>Location:<br><select name="room_descr" size="1">
<option value="">Select a Location</option>
<option value="Patient...
| |
by: ankush143 |
last post by:
hiii...
i want to make a database for the hospital management in oracle-SQL
so please help me
can someone give me queries related to this.......
|
by: zaina |
last post by:
hi everybody
i am nwebie in this forum but i think it is useful for me and the member are helpful
my project is about connecting client with the server to start exchanging messages between them.
to be more clear we process this purpose we serve this to the student in the university. how??
student will send a message that contains his name,id and request by format the server want such as zaina-20024008-grade.
the grade is the request...
|
by: registry |
last post by:
<%@Language="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Registry Network Hospital Detail</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |