Assignment 3: Chatbot
Instructions
A chatbot is a computer program designed to emulate human...
Computers and Technology, 30.10.2020 01:00 volleyballfun24
Assignment 3: Chatbot
Instructions
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.
The Scenario
You have decided to start a website and are creating a chatbot prototype to show investors so you can raise money and launch your website.
Your chatbot should ask the user the following (minimum requirements for the grader) and then give answers depending on the answers the user inputs:
at least 5 questions
at least 2 if-elif-else statements
the use of the random module and randomly generated numbers
Based on these criteria, some responses will be based on what the user types and some will be based on random numbers.
For example, if the chatbot asks how the user is doing, your chatbot might respond I’m sorry to hear that. in response to a user input of sad, or That's great! in response to a user input of happy.
Additionally, you could also have a random number generated between, say, 1 and 3 and have a corresponding response depending on the number to randomly answer with That is great to hear. or So interesting., and so on.
Sample Run
Please note that due to the infinite possibility of questions that can be asked, your program will be different—this is only one example.
What is your first name?
Pascal
What is your last name?
Smith
Hi there, Pascal Smith, nice to meet you!
How old are you?
17
17 is a good age.
You are old enough to drive.
So, Pascal, how are you today?
Happy
You are happy.
That is good to hear.
Tell me more.
I am just happy.
That's good to hear.
Well, Pascal, it has been nice chatting with you.
Answers: 3
Computers and Technology, 22.06.2019 16:30
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
Computers and Technology, 23.06.2019 01:30
Which tab is used to change the theme of a photo album slide show? a. design b. view c. transitions d. home
Answers: 1
Computers and Technology, 23.06.2019 22:30
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
Computers and Technology, 24.06.2019 09:00
Why might you chose to crest a function resume
Answers: 1
Mathematics, 21.04.2020 22:12
History, 21.04.2020 22:12
English, 21.04.2020 22:12
Social Studies, 21.04.2020 22:12
Mathematics, 21.04.2020 22:12
Mathematics, 21.04.2020 22:13