Question: Using C++... Produce a rand number between 0-20 using, int number = rand() %20; Then, use a switch statement to select one of the 20

Using C++... Produce a rand number between 0-20 using, int number = rand() %20;

Then, use a switch statement to select one of the 20 responses based on the random number produced from the fuction rand()...

"it is certain" , "It is decidedly so" , "Without a doubt" , " Yes definitely" , " You may rely on it" , " As i see it, yes" , "Most likely" , "Outlook good, Yes, Signs point to yes, Reply hazy try again, Ask again later, Better not tell you now, Cannot predict now, Concentrate and ask again, Dont count on it, My reply is no, My sources say no, Outlook not so good, Very doubtful.

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 Databases Questions!