Question: Please use c++ 3-It will be important to understand how random numbers are generated using the rand) function. You will also need to have a

Please use c++  Please use c++ 3-It will be important to understand how random

3-It will be important to understand how random numbers are generated using the rand) function. You will also need to have a basic understanding of a while or for loop You are to write a program in which the user tries to guess which number (from 0 to 99, inclusive) that the program generates, based on the rand() function. First the program asks the user to guess which number will be generated, and if the user is correct, it prints "Good guess!" and if the user is incorrect, it prints "Sorry too high or too low (depend of the case), try again!" Some other specifications The program should repeatedly ask the user for a guess and generates the outputs "Number picked: "followed by the number, and the statements as to whether it was correct or not, too high or too low If the user enters a number of O or less, the program should print "Goodbye" and exit. 1. 2. the user enters a number greater than 99, the program should output "Number too high, guess againl" and then ask for another number. 4 When the answer is correct the program must generate a new random number 99 and ask for a new guess

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!