Q2: Number Guessing Game Description: The Number Guessing Game is a fun and interactive game where the player tries to guess a randomly generated number within a certain range. The game provides hints to the player to help them narrow down their guesses. The player wins the game if they correctly guess the number within a specified number of attempts. Gameplay: Initialization: The game generates a random number within a predefined range (e.g., between 1 and 100). The game sets the maximum number of attempts allowed (e.g., 5 attempts). The game welcomes the player and provides instructions. Player's Turn: The game prompts the player to guess the number. The player enters their guess. Evaluation: If the player's guess matches the generated number, the game declares the player the winner and ends. If the player's guess is higher or lower than the generated number, the game provides a hint indicating whether the guess was too high or too low. If the player's guess is outside the specified range or is invalid, the game prompts the player to enter a valid guess. Repetition: Steps 2 and 3 repeat until the player either guesses the correct number or exhausts all allowed attempts. End of Game: If the player exhausts all allowed attempts without guessing the correct number, the game declares the player the loser and reveals the correct number. The game asks the player if they want to play again. Features: Random Number Generation: The game generates a random number within a specified range. Input Validation: The game validates the player's input to ensure it falls within the valid range of guesses. Hints: The game provides hints to the player to help them narrow down their guesses (e.g., "Too high", "Too low"). Replayability: After each game, the player has the option to play again. Difficulty Levels: Implement different difficulty levels with varying ranges and maximum attempts. • High Scores: Keep track of the player's best scores or fastest times. • User Interface: Design a graphical user interface (GUI) for a more engaging experience. This description outlines the basic mechanics and features of a number guessing game. You can customize and expand upon it based on your preferences and the intended audience.