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: write a java program

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

    Question write a java program

    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
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,949
    Thanks
    56
    Thanked 2,353 Times in 2,324 Posts

    Default Re: write a java program

    Do you have any specific questions about your assignment?
    Please post your code and any questions about problems you are having.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 2
    Last Post: January 25th, 2013, 09:54 PM
  2. write a program in java?
    By rajasekharreddy in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 25th, 2012, 09:58 AM
  3. [SOLVED] Write a java program to display even numbers between 2 and 200 using netbeans java
    By Shalom in forum What's Wrong With My Code?
    Replies: 0
    Last Post: December 11th, 2012, 05:16 AM
  4. ::: Write a Simple Java Program :::
    By riyaju in forum Object Oriented Programming
    Replies: 3
    Last Post: July 27th, 2012, 10:04 AM
  5. help me write java program
    By stevisto in forum Member Introductions
    Replies: 1
    Last Post: September 13th, 2011, 04:44 PM