Advanced Placement (AP), 28.10.2020 22:30 shartiarahoward
In this exercise, you are going to make a sample bot conversation. At this point, we don't have too much that we can do, but you are going to ask the user for their name and then use that in the constructor for the bot.
After that, you are going to simulate a conversation. You will print questions to the console and answer them by calling methods from the Bot class. (You don't actually prompt the user for any information other then their name).
When you are finished, your output should match the output below (with the exception of your name).
Sample Output:
Hello. What is your name?
Kiara
Hello Kiara! My name is Hal!
How are you today!
You can ask me about the weather,
or how many feet are in a mile.
I can even convert feet to meters!
What's the weather like?
Its always warm and dry inside your computer!
How many feet in a mile?
There are 5280 feet in a mile.
It was nice talking with you!
Have a great day!
Challenge: The bot does have some additional commands included, but we haven't covered these topics yet. Can you figure out how to access some of these methods?
Answers: 1
Advanced Placement (AP), 23.06.2019 07:30
Each autumn the forest floor is covered by leaves that have fallen from trees which type of organisms is most effective in decomposing the leaf tissue allowing the nutrients and minerals to be recycled in the environment?
Answers: 2
Advanced Placement (AP), 24.06.2019 15:00
Atotal of 980 students were asked what their favorite holiday was and 525 students said christmas what percent of students said christmas was their favorite holiday
Answers: 2
Advanced Placement (AP), 24.06.2019 18:00
Ap courses are college level courses overseen by the
Answers: 1
Advanced Placement (AP), 24.06.2019 20:30
During the decline of the harappan civilization, which group came to power in the indus valley
Answers: 1
In this exercise, you are going to make a sample bot conversation. At this point, we don't have too...
History, 30.03.2020 21:01
Biology, 30.03.2020 21:01
Chemistry, 30.03.2020 21:01
Mathematics, 30.03.2020 21:01
Mathematics, 30.03.2020 21:01
Computers and Technology, 30.03.2020 21:01