Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Java: Create a basic chat bot. All input will come from the command line. If the user entered nothing at the command line, show

Using Java: 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.
Test Case 1
Nothing to say?
Test Case 2
Command Line arguments:
how are you today?
Fine, but could use some more power.
Test Case 3
Command Line arguments:
how ARE yOU today?!?!
Fine, but could use some more power.
Test Case 4
Command Line arguments:
You are not funny.
I didn't understand that.
Test Case 5
Command Line arguments:
YOU ARE NOT FUNNY!
I didn't understand that.
Test Case 6
Command Line arguments:
how are we able to make you happy?
Fine, but could use some more power.
Test Case 7
Command Line arguments:
how are93 yYOu today
Fine, but could use some more power.
Test Case 8
Command Line arguments:
how are how are we doing and you?
Fine, but could use some more power.
Test Case 9
Command Line arguments:
what is your favorite cookie?
cookie? I'm only interested in transistors.
Test Case 10
Command Line arguments:
do you like cars?
I didn't understand that.
Test Case 11
Command Line arguments:
what is your favorite car?
car? I'm only interested in transistors.
Test Case 12
Command Line arguments:
what favorite food?
food? I'm only interested in transistors.
Test Case 13
Command Line arguments:
what do I have to say to FIGURE OUT your FAVORITE3 soda?
soda? I'm only interested in transistors.
Test Case 14
Command Line arguments:
i give up.
I didn't understand that.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

e. What are notable achievements of the group?

Answered: 1 week ago