subject
Computers and Technology, 05.05.2020 22:22 samy17

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. Your program will read a file named eightBallResponses. txt that will be found in the same folder as the executing program. The file contains 16 response messages (each followed by a newline). Your program will store these in an array of strings. The program will prompt the user to enter a question and in response your program will display one of the messages selected randomly by subscript from your array. The program will repeat until the user is ready to quit

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 03:30, rebekah2503
Identify at least three types of characteristics that you were asked about as you the computer identify a fruit.
Answers: 3
image
Computers and Technology, 22.06.2019 11:30, lindalu
Hassan is writing his master’s thesis, which is a thirty-page document. he received some feedback from his professor in the form of comments, but does not see where the comments are. what is the fastest way for hassan to find the feedback?
Answers: 3
image
Computers and Technology, 23.06.2019 12:00, lyn94
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
image
Computers and Technology, 24.06.2019 10:00, shrafe
Which two technologies support the building of single-page applications?
Answers: 2
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 in other subjects:

Konu
Biology, 04.11.2020 07:00
Konu
Mathematics, 04.11.2020 07:10
Konu
Mathematics, 04.11.2020 07:10