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 06:50
Type the correct answer in the box. spell all words correctly. which view of report creation allows you to customize the report before the database program creates it? creating a report in allows you to customize the report before the database program creates it. pl asap
Answers: 1
question
Computers and Technology, 22.06.2019 09:00
Which best describes the condition under which the unicode output is the same as plain text?
Answers: 3
question
Computers and Technology, 22.06.2019 21:50
Answer the following questions regarding your system by using the commands listed in this chapter. for each question, write the command you used to obtain the answer. a. what are the total number of inodes in the root filesystem? how many are currently utilized? how many are available for use? b. what filesystems are currently mounted on your system? c. what filesystems are available to be mounted on your system? d. what filesystems will be automatically mounted at boot time?
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
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, 23.10.2019 05:20
question
Spanish, 23.10.2019 05:20