Results 1 to 12 of 12
Thread: Can someone solve this ;
 01252014, 10:41 PM #1Member
 Join Date
 Jan 2014
 Posts
 5
 Rep Power
 0
Can someone solve this ;
Hello i have a request can someone solve this;
The exercise is this:
I want one structure named "Patient" to keep the record about patients in
a hospital , which means the "surname" the registration number "number"
the "disease" and the "Age" and the hospitalization "days".
The variables should be private
appropriate structure for the creation of objects of class that initializes all variables class
methods to allow recovery and change the properties of the class.
method that displays illustrative detail and all the characteristics of each patient
a method that returns the cost of hospitalization (double cost ()) based on the formula =
Price = 1000 + days of hospitalization * 30
Then construct a class TestPatient which must:
to specify 10 objects of class Patient using the builder you created
print for each patient all the information and the cost of hospitalization.
to find a patient who has the biggest cost of hospitalization and who less
in one dimensional array of appropriate size to enter the cost of hospitalization of all patients
Emphasized that all the results should be given with the appropriate explanations and that the presence of feedback in the program is mandatory
 01252014, 10:49 PM #2Senior Member
 Join Date
 Jan 2013
 Posts
 168
 Rep Power
 5
Re: Can someone solve this ;
What have you tried so far? We can't help you unless you have done something yourself.
 01252014, 10:53 PM #3Member
 Join Date
 Jan 2014
 Posts
 5
 Rep Power
 0
Re: Can someone solve this ;
It's not for me.It's for a friend of mine,he is studying logistics and they have 1 lesson only for 1 semester and its called JAVA,but he doesn't have a clue on JAVA,and he can't pass the lesson and the tests so he want to solve this problem as the teacher said to him and write the theory of the test and he will pass the lesson.
But i can't help me otherwise.
 01252014, 10:54 PM #4Senior Member
 Join Date
 Jan 2013
 Posts
 168
 Rep Power
 5
Re: Can someone solve this ;
Well we won't just give him code, because that would be cheating.
 01252014, 10:58 PM #5Member
 Join Date
 Jan 2014
 Posts
 5
 Rep Power
 0
 01252014, 11:55 PM #6Senior Member
 Join Date
 Jan 2013
 Posts
 168
 Rep Power
 5
Re: Can someone solve this ;
He has to do it himself.
 01262014, 03:38 AM #7Member
 Join Date
 Jan 2014
 Posts
 5
 Rep Power
 0
Re: Can someone solve this ;
Can't you just give me the answer ; He doesn't have the time to do that.I don't have also the time to learn and teach him JAVA.
 01262014, 11:13 AM #8
 Join Date
 Sep 2008
 Location
 Voorschoten, the Netherlands
 Posts
 14,393
 Blog Entries
 7
 Rep Power
 25
Re: Can someone solve this ;
Because the cost is a function that is monotonically increasing w.r.t. the number of days, all one has to do is find the maximum number of days if one wants to find the patient with a maximum cost value; all the rest are frillies such as loops and small classes and getters and setters and an occasional System.out.println( ... ) here and there ...
kind regards,
JosBuild a wall around Donald Trump; I'll pay for it.
 01262014, 11:43 AM #9Member
 Join Date
 Jan 2014
 Posts
 5
 Rep Power
 0
Re: Can someone solve this ;
I don't know ,not even a little about JAVA, i wanted to ask you,here in the forum due to that someone would have the knowledge to solve this fast and be cleared.
If i don't know and don't have the slightest clue,then he doesn't know anything. He know only how to login in the facebook.
 01262014, 02:41 PM #10
 Join Date
 Sep 2008
 Location
 Voorschoten, the Netherlands
 Posts
 14,393
 Blog Entries
 7
 Rep Power
 25
 01262014, 02:50 PM #11Senior Member
 Join Date
 Apr 2013
 Location
 Sweden
 Posts
 272
 Rep Power
 4
 01262014, 04:48 PM #12Member
 Join Date
 Jan 2014
 Posts
 2
 Rep Power
 0
Similar Threads

Do not know how to solve this
By jaylimix in forum New To JavaReplies: 13Last Post: 05312011, 11:42 AM 
Please help me to solve it(jsp)
By srengvichet in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 08152010, 03:52 PM 
Please help me solve them
By quangtrung89 in forum New To JavaReplies: 2Last Post: 11262009, 11:08 PM 
Plz solve this....
By theone3nu in forum Java 2DReplies: 3Last Post: 01082009, 06:01 PM 
Plz solve this....
By theone3nu in forum New To JavaReplies: 9Last Post: 12232008, 10:42 AM
Bookmarks