View the step-by-step solution to:

Write a program on A good Doctor is defined as a person who has ALL the following properties: His first name should contain at least 5 characters and...

Write a program on A good Doctor is defined as a person who has ALL the 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.
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.
Write a program on A good Doctor is defined as a person who has ALL the 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. 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.
Background image of page 1

This question was asked on Jan 18, 2014.

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors and customizable flashcards—available anywhere, anytime.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access or to earn money with our Marketplace.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
  • -

    Flashcards

    Browse existing sets or create your own using our digital flashcard system. A simple yet effective studying tool to help you earn the grade that you want!

    Browse Flashcards