A doctor is good only if the doctor satisfies the following conditions:
1. He is a ï ¿ ½Cardiologistï ¿ ½ (but see next conditon)
2. If he is not a "Cardiologist", he must be working with ï ¿ ½Apollo Hospitalï ¿ ½ and have his own nursing home.
3. if he has a nursing home, he should charge between Rs. 300 to 500 as consultancy charges, and Rs. 450 otherwise.
4. If he is working with "Kailash Hospital", he should not work at "Fortis Hospital" and he should not have his own nursing home.
5. 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
1
Expert's answer
2014-03-17T15:38:28-0400
Dear customer, Unfortunately, your question requires a lot of work and cannot be done for free. Please submit it with all requirements as an assignment to our control panel and we'll assist you.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment