questionjava program on a good doctor is defined


Question

Java program on A good Doctor is defined as a person who has ALL following properties-

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.

Note down a method:

boolean isGoodDoctor(String firstname, String middlename, String lastname, String degree, int age, boolean hasOwnClinic, String[] patientsname)

firstname First name of doctor.
middlename Middle name of doctor.
lastname Last name of doctor.
degree Highest degree obtained by doctor.
age Age of the doctor in years.
hasOwnClinic whether or not doctor has his own clinic.
patientsname an array containing the names of doctors patients.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: questionjava program on a good doctor is defined
Reference No:- TGS0444662

Expected delivery within 24 Hours