Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ only 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,
C++ only
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 CommentsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started