Question: Please use C++ Use the array: string messages[5]={ Be safe, Study more,Help others, Go to movie, Go to Los Vegas); Generate a random number between
Please use C++
![Please use C++ Use the array: string messages[5]={ "Be safe", "Study more","Help](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66fa40abe0159_58766fa40ab8cc44.jpg)
Use the array: string messages[5]={ "Be safe", "Study more","Help others", "Go to movie", "Go to Los Vegas"); Generate a random number between 0 and 4 to display one of the above messages. Which of the messages displayed more than others? Sample Input Be safe CONTINUE[Y)? y Help others CONTINUE[Y)? y Be safe CONTINUE[y)? The message "Be safe" displayed more often
Step by Step Solution
There are 3 Steps involved in it
To solve the problem you can write a C program that continuously displays a random message from the array until the user chooses to stop It then deter... View full answer
Get step-by-step solutions from verified subject matter experts
