His first name should contain at least 5 characters and his middle name must contain “Kumar” (ignore cases)
He must have a "MBBS" degree.
He must have treated at least 200 patients.
His age must be greater than 25.
The name of one of his patients must be “DEVESH”.
If condition 5 fails then the number of his patients must be greater than 500 and he should own his own clinic.
If he does not have a "MD" degree, then the number of his patients must be greater than 1000.
Write a method:
boolean isGoodDoctor(String firstname, String middlename, String lastname, String degree, int age, boolean hasOwnClinic, String patientsname)
firstname First name of the doctor.
middlename Middle name of the doctor.
lastname Last name of the doctor.
degree Highest degree obtained by the doctor.
age Age of the doctor in years.
hasOwnClinic whether or not the doctor has his own clinic.
patientsname an array containing the names of the doctors patients.
Recently Asked Questions
- how do i determine the density of a sphere in kg/ L if the mass is 675.1 mg and the radius is 48.3cm how do i determine the volume of a rectangular prism with
- What are the concerns if comparative effectiveness findings are used to make coverage decisions
- Someone whose Learning Pattern combination is “nonstandard” may have which of the following scores? A. Sequence, 25; Precision, 25; Technical Reasoning,