Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: I need a java code for this question. can any one help me..?

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I need a java code for this question. can any one help me..?

    A doctor is good only if the doctor satisfies the following conditions:

    He is a �Cardiologist� (but see next conditon)
    If he is not a "Cardiologist", he must be working with �Apollo Hospital� and have his own nursing home.
    if he has a nursing home, he should charge between Rs. 300 to 500 as consultancy charges, and Rs. 450 otherwise.
    If he is working with "Kailash Hospital", he should not work at "Fortis Hospital" and he should not have his own nursing home.
    If he does not go to any hospitals, he must have his own nursing home.
    Write a method:

    boolean isGoodDoctor(String specialization, String[] hospital, int fees, boolean haveNursingHome)

    specialization Specialization done by the doctor (say “Neurologist”, or “Gynecologist”), can be null if the doctor is only MBBS.
    hospital String array containing hospital names where the doctor holds checkup sessions, can be null if he does not go to any hospital.
    fees This parameter defines the fees this doctor charges per visit.
    haveNursingHome This parameter will be true if the doctor owns a nursing home otherwise false.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: I need a java code for this question. can any one help me..?

    Did you have a question?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Code for a question???
    By bickey in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 19th, 2013, 05:36 PM
  2. Replies: 5
    Last Post: November 14th, 2012, 10:47 AM
  3. Java code for a Question
    By Pushpinder in forum Loops & Control Statements
    Replies: 1
    Last Post: September 24th, 2012, 07:13 AM
  4. This is my code and i would like to ask a question..
    By savvas in forum What's Wrong With My Code?
    Replies: 2
    Last Post: May 24th, 2011, 01:01 PM
  5. Newbie Question on a Code - I don't know if this is Java
    By fresca in forum Java Theory & Questions
    Replies: 4
    Last Post: April 7th, 2011, 08:39 PM