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 20:00
What is used to analyze and summarize your data without graphical support
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
question
Computers and Technology, 23.06.2019 17:30
What are the most commonly found items in the trash according to the municipal solid waste report?
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
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, 03.08.2019 16:30
question
Social Studies, 03.08.2019 16:30
Questions on the website: 13722363