Question: In C: Your program allows the user 5 chances to guess a number between 1 and 30 (both inclusive) that is computer-generated. The user is
In C:


Your program allows the user 5 chances to guess a number between 1 and 30 (both inclusive) that is computer-generated. The user is prompted repeatedly until the number entered is in the range of 1 to 30. After every incorrect guess, the program gives a clue to go higher or lower for the next guess. After 3 incorrect guesses, your program gives an additional clue to the user - it tells the user whether the number is even or odd. At the end, it displays some messages as explained later in Note 2.2. Zybooks section 2.18 has details on how a random number is generated using srand() and rand() functions. You must remember to include the following libraries in your program: #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
