Question: Program 4 & 5 Program 4. Random Number Guessing Game Write a program that generates a random number between 1 and 100 and asks the

Program 4 & 5

Program 4. Random Number Guessing Game Write a program that generates a random number between 1 and 100 and asks the user to guess what the number is. If the users guess is higher than the random number, the program should display Too high. Try again. If the users guess is lower than the random number, the program should display Too low. Try again. The program should use a loop that repeats until the user correctly guesses the random number. Then the program should display Congratulations. You figured out my number.

Program 5. Enhance the program 4 that you wrote so it keeps a count of the number of guesses the user makes. When the user correctly guesses the random number, the program should display the number of guesses along with the message of congratulations.

 ============================ Grading criteria ============================ a. Top of each Program you have your Name : Indicated that this is your work. (1 point )
b. Next line is indicating the date you are submitting your program. (1 point )
c. Next line you will write a brief explanation for what this program intend to do. (1 point ) d. Use of sufficient comments to clarify use of syntax. (1 point) e. Use of meaningful variable (identifier) in your program (1 point) f. Separate input, process, and output instructions by a comment (In-Process-Out) (1 point) 

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!