Question: Lab #6 Number Guessing Game-Loops and Nested Loops Requirements: Design, develop, test, and submit a program for a Number Guessing game. The program will select

 Lab #6 Number Guessing Game-Loops and Nested Loops Requirements: Design, develop,

Lab #6 Number Guessing Game-Loops and Nested Loops Requirements: Design, develop, test, and submit a program for a Number Guessing game. The program will select a random number between 0 and 100, allow the user to try up to 10 times to guess the number, and tell the user if each guess is too high, too low, or correct The actual game portion must be a function...you can use more than one function in your program The amount of time spent designing the program before hand is directly related to the time spent writing and debugging the program The program will 1. 2. 3. Compute a unique random number using the random number generator and time as a seed Announce the game and rules to the user at each "start" of a new game Allow the user 10 tries to guess the number. For each guess If it is correct announce to the user that they won, then ask if they want to play again If it is incorrect a. b. i. Tell the user whether the number they guessed is too high or too low Tell the user how many guesses they have remaining If it is the tenth attempt, tell the user the games is over and ask if they want to play again ii. iii. Once the game is over (win or lose), ask the user if the would like to play again and handle each condition 4. Lab references Random number generator Loops Chapter 5 (Gaddis) page 128 (Gaddis) "ENBCCNFall 2017CSE 110CSE 110 Labs NEW Lab 1234NumberGame-Lab XNumberGamebinD I The computer has picked a random number between 0 and 100 You have 10 tries to guess the number.. .good luck! Enter a number! 55 You re too high. Guess again. you have 9 tries remaining Enter a number 33 You re too low... Guess again... you have 8 tries remaining Enter a number 44

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!