Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Eliza prgramming

Please add 3 to 4 new sections to the "psychobabble" area of the program. The text following the "r" character is the keyword being searched for in the users input. The lines of text right after the "r" statement are responses that Eliza can update and print back to the user. The "{0}" characters are text (or individuals words) that have been parsed from the users input and put through the "reflections" block of code.

For extra credit (5 points) enhance the sentence construction line in the "analyze" function. You enhancement could include improving the output to retain some type of context (for example - "You already said that", or set flags to catch changes in emotion - If I say "I'm sad" and then type in "I'm happy" the program should "remember" what I said 1 or 2 or 3 statements earlier.)

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question