Question: Lab 3: Magic 8-Ball For this lab we will be implementing Magic 8-Ball game Given 8 messages stored in an array of strings, your progra

Lab 3: Magic 8-Ball For this lab we will be implementing Magic 8-Ball game Given 8 messages stored in an array of strings, your progra messages am will either prompts the user for a number (in part 1) or generates some random Part 1, 1 point Prompt for user input for an integer in the range 0. 7. Display the message that corresponds to this value. Welcome, let Magic 8-Ball show you the way! Think of a 6. No way, do not proceed with that plan the range 0.7:6 Part 2, 1 point te a single random number using rand() in the range o0.7. Display the corr Think of a question, then hit enter key to get a message 2. Yes, go ahead and make that phone call Part 3, 1 point (extra credit) Add a loop to your program, to continue selecting and displaying more numbers and random messages until option 6 gets randomly selected, at which point the program ends Sample run: ely, go to 1. New 1. New friends are on their way 2. Yes, go ahead and make that phone call 6. No way, do not proceed with that plan Comments

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!