Can sombody help me in solving this question, and write a code, and plz reply me as soon as possible
Q)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