Menu

[solved] – Question 97336

A chatbot is a computer program designed to emulate human conversation. For this program you will use if statements, user input, and random numbers to create a basic chatbot.

Here is the scenario: You have decided to start an online website. You are creating a prototype to show investors so you can raise money and launch your website. You should ask the user at least 5 questions ( 5 inputs required ) and use at least 2 if-elif-else statements and give answers depending on how they answer. Some responses should be based on what they type, and some should be based on random numbers.

For example, if they say they are sad, your chatbot might respond Im sorry to hear that.

You could also have a random number generated between 1 and 3 and have a corresponding response depending on the number such as That is great to hear or So interesting.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *