Create a basic chat bot. All input will come from the command line. -If the user entered nothing at the command line, show Nothing to say? -If the user entered some variation of how are you today?...



Create a basic chat bot. All input will come from the command line.



-If the user entered nothing at the command line, show Nothing to say?


-If the user entered some variation of how are you today? show Fine, but could use some more power. As long as the input has the word "are" before the word "you", print this message. Make your program smart enough to accept variations of these words (see output).


-If the user entered some variation of what is your favorite something? Display something? I'm only interested in transistors.


-In all other cases, show "I didn't understand that".


Write in Java and use test case examples as a result

Test Case 1<br>Nothing to say? n<br>Test Case 2<br>Fine, but could use some more power.\n<br>Test Case 3<br>Fine, but could use some more power. \n<br>Test Case 4<br>I didn't understand that. \n<br>Test Case 5<br>I didn't understand that. In<br>Test Case 6<br>Fine, but could use some more power. \n<br>

Extracted text: Test Case 1 Nothing to say? n Test Case 2 Fine, but could use some more power.\n Test Case 3 Fine, but could use some more power. \n Test Case 4 I didn't understand that. \n Test Case 5 I didn't understand that. In Test Case 6 Fine, but could use some more power. \n

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here