Problem
The Doctor program described combines the data model of a doctor and the operations for handling user interaction. Restructure this program according to the model/view pattern so that these areas of responsibility are assigned to separate sets of classes.
The program should include a Doctor class with an interface that allows one to obtain a greeting, a signoff message, and a reply to a patient's string.
To implement the greeting, define a method named greeting for the Doctor class. To implement the signoff message, define a method named farewell for the Doctor class. Both greeting and farewell should return a string with a greeting or farewell message respectively. The reply function is defined for you, it should be added as a method for the Doctor class.
The rest of the program, in a separate main program module, handles the user's interactions with the Doctor object. Develop this program with a terminal-based user interface.