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: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet.what cloud model is linda using
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
Light travels at a speed of 186,000 miles a second. the distance light travels in a year is 5,865,690,000,000 miles/year 5,865,695,000,000 miles/year 58,656,950,000,000 miles/year 6,789,000,0000 miles/year
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
20 points archie wants to use a reflector as he photographs a newlywed couple. what would he consider in his choice? a. shadow and sunny b. homemade and professional c. lamps and boards d. incident and reflected e. neutral density and enhancement
Answers: 3
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, 22.03.2021 17:10
question
Biology, 22.03.2021 17:10
question
History, 22.03.2021 17:10
question
Spanish, 22.03.2021 17:10
Questions on the website: 13722360