Question: In Java using JoptionPane Create a simple version of Eliza by allowing the user to enter statements continually until the user quits by typing Goodbye.
In Java using JoptionPane
Create a simple version of Eliza by allowing the user to enter statements continually until the user quits by typing Goodbye. After each statement, have the computer make one of the following responses: If the user entered the word my (for example, I am having trouble with my brother), respond with Tell me more about your and insert the noun in questionfor example, Tell me more about your brother. When you search for a word in the users entry, make sure it is the entire word and not just letters within another word. For example, when searching for my, make sure it is not part of another word such as dummy or mystic. If the user entered a strong word, such as love or hate, respond with, You seem to have strong feelings about that. Add a few other appropriate responses of your choosing. In the absence of any of the preceding inputs, respond with a random phrase from the following: Please go on, Tell me more, or Continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
