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.
1
Expert's answer
2019-10-25T06:41:41-0400
Dear mfmmm, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment