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 program in java?

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    1
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default write a program in java?

    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. The Following User Says Thank You to rajasekharreddy For This Useful Post:

    tn sankar (March 15th, 2013)


  3. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: write a program in java?

    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. [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
  2. Write a Java program that reads file
    By Mehwish-S in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: July 28th, 2012, 03:00 PM
  3. ::: Write a Simple Java Program :::
    By riyaju in forum Object Oriented Programming
    Replies: 3
    Last Post: July 27th, 2012, 09:04 AM
  4. How do you write a Java program that displays your initials?
    By kala99 in forum Java Theory & Questions
    Replies: 3
    Last Post: November 30th, 2011, 02:12 PM
  5. help me write java program
    By stevisto in forum Member Introductions
    Replies: 1
    Last Post: September 13th, 2011, 03:44 PM