Question: This needs to be coded to accept command line arguments, not scanner input. the something in the question does not literally mean something it refers
This needs to be coded to accept command line arguments, not scanner input. the "something" in the question does not literally mean "something" it refers to whatever the input has in that place, i.e "What is your favorite car?" in this String, the "something" is the car, so the output would read, "car? I'm only interested in transistors.".
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.
REQUIRED OUTPUTS Command Line Arguments Nothing to say?
Command Line Arguments how are you today? Required Output
Fine, but could use some more power.
Command Line Arguments how ARE yOU today?!?! Required Output
Fine, but could use some more power.
Command Line Arguments You are not funny. Required Output
I didn't understand that.
Command Line Arguments YOU ARE NOT FUNNY! Required Output
I didn't understand that.
Command Line Arguments how are we able to make you happy? Required Output
Fine, but could use some more power.
Command Line Arguments how are93 yYOu today Required Output
Fine, but could use some more power.
Command Line Arguments how are how are we doing and you? Required Output
Fine, but could use some more power.
Command Line Arguments what is your favorite cookie? Required Output
cookie? I'm only interested in transistors.
Command Line Arguments do you like cars? Required Output
I didn't understand that.
Command Line Arguments what is your favorite car? Required Output
car? I'm only interested in transistors.
Command Line Arguments what favorite food? Required Output
food? I'm only interested in transistors.
Command Line Arguments what do I have to say to FIGURE OUT your FAVORITE3 soda? Required Output
soda? I'm only interested in transistors.
Command Line Arguments i give up. Required Output
I didn't understand that.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
