subject

Write a program that simulates a magic 8 ball, which is a fortune-telling toy that displays a random response to a yes or no question. in the student sample programs for this book, you will find a text file named 8_ball_responses. txt. the file contains 12 responses, such as "i don't think so", "yes, of course! ", "i'm not sure", and so forth. the program should read the responses from the file into a list. it should prompt the user to ask a question, then display one of the responses, randomly selected from the list. the program should reapeat until the user is ready to quit.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:30
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
question
Computers and Technology, 24.06.2019 10:40
Joe needs to see the slide transitions and animations he has applied to his slides in a large view. which presentation view should he use? in which tab would joe find the animations option to make further changes, if any?
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
Every telecommunication setup uses two devices: one device to transmit data and one device to receive data. which device transmits frequencies to mobile phones? towers transmit frequencies to mobile phones.
Answers: 1
You know the right answer?
Write a program that simulates a magic 8 ball, which is a fortune-telling toy that displays a random...
Questions
question
Mathematics, 28.09.2020 18:01
question
Mathematics, 28.09.2020 18:01
question
Mathematics, 28.09.2020 18:01
question
Mathematics, 28.09.2020 18:01
question
Mathematics, 28.09.2020 18:01
question
Mathematics, 28.09.2020 18:01
question
Mathematics, 28.09.2020 18:01
question
Mathematics, 28.09.2020 18:01
Questions on the website: 13722359