Write a java program on a good doctor

Assignment Help Computer Engineering
Reference no: EM133100

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.

Reference no: EM133100

Questions Cloud

Display all 52 cards in a standard deck of playing cards : Display all 52 cards in a standard deck of playing cards
What is essential address field width : What is essential address field width
Write down an application that reads 3 integers : Write down an application that reads 3 integers
Describe the term tco : Describe the term TCO
Write a java program on a good doctor : Write a java program on A good Doctor
Write down specification for the adt as a java interface : Write down specification for the ADT as a java interface
Produce a decision table : Produce a decision table
What is role of risk assessment : What is role of risk assessment
Explain contents of an initially empty avl tree : Explain contents of an initially empty AVL tree

Reviews

Write a Review

Computer Engineering Questions & Answers

  What is the output of code fragment that invokes calc

What is output of code fragment that invokes calc

  How to develop a problem definition

How to develop a problem definition

  Application to computer science

Find the matrices that represent the relations.

  Develop a checkout lane simulation

Develop a checkout lane simulation that can be used to determine the optimal number of lanes that Cougar Mart should have open.

  What is joptionpane class or the scanner class

What is JOptionPane class or the Scanner class

  Program on wireless connection technology

Program on wireless connection technology.

  What occurs in an infinite loop

What occurs in an infinite loop? Create your own Repeat-until repetition arrangement.

  Implementation of type data structures

How can string and word variable type data structures be implemented?

  Prove correctness for following

Prove correctness for following

  What is response time

What is response time

  Generate a database for the gps law firm

Generate a database for the GPS Law firm

  Create a white paper based on knowledge

Create a white paper based on knowledge

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd