Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribed

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 Comments

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions