Computers and Technology
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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 09:30, eiza666
My mom and i are moving and we don’t have wifi for the next week, i want to know if using a using a hotspot with unlimited data is better than using regular wifi. i’m considering cost, speed, and data sacrifices.
Answers: 1
image
Computers and Technology, 22.06.2019 14:30, camerondillonn
If the polar bear were taken out of the food chain what would happen to the seal population the seal population would diminish the seal population would grow dramatically the seal population would stay the same the seal population would decrease slightly
Answers: 1
image
Computers and Technology, 22.06.2019 18:00, crimhill
When is it appropriate to use an absolute reference
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, manyah6189
Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. what critical detail must she have before she starts designing the brochure?
Answers: 1
Do you know the correct 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
Mathematics, 22.01.2021 01:00