Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For this program, create a simple program that asks the user toguess a number wi

ID: 3613651 • Letter: F

Question

For this program, create a simple program that asks the user toguess a number within a range from 0 to a number input by the user.you will allow the user to play a simple game called: GuessingNumber. To play this game, program will make a call to a randomnumber generator to obtain a new number for the user to guess,using the initial boundary obtained from the user. The programshould then ask the user to guess what the number is, including areminder of the range to be guessed (e.g. from 0 to 200). If theuser makes a guess that is higher than the correct number, print astatement advising him/her to guess lower next time. If the userguesses a number that is lower than the correct number, print astatement advising him/her to guess higher next time. When the userfinally guesses the correct number, print a suitable congratulatorystatement, including a statement as to how many guesses it took theuser to reach the correct number. Each time the user has guessedthe correct number, ask the user if s/he wishes to quit or to playagain. Continue as long as the user wishes to play.

Explanation / Answer

please rate - thanks #include #include #include int main() {int randomdigit,number=-1,max,again=1; while(again==1) { printf("What is the highest possible number? "); scanf("%d",&max); randomdigit=(time(0)%max+1); printf("Guess a number between 0 and %d ",max); while(randomdigit !=number)     {printf("Enter number: ");     scanf("%d",&number);     if(number==randomdigit)         printf("You guessedcorrectly! ");     else        if(number
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote