Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Develop a simple number guessing game (100pts) (a) Introduction The user is asked to guess a number against the computer (who has already chosen a number between 1 and 10). You are prompted to guess...

1 answer below »

Develop a simple number guessing game (100pts)
(a) Introduction
The user is asked to guess a number against the computer (who has already chosen a numbe
etween 1 and 10). You are prompted to guess continuously until you get the co
ect answer o
until you have made 10 guesses--then the game is over. The program then asks if you'd like to
play again and will repeat the game if you agree.
(b) The Task
Several functions have been defined with clear descriptions of parameters and returns, which
will help you implement the game. Your task is to implement those functions in that file.
20 pts - Display_Title()
20 pts - Play_Game()
40 pts - main()
10 pts - Overal workability of code
(c) The Methods
Display_Title()
This method takes in no parameters, returns nothing, and prints out the title intro to the game.
Play_Game()
In this method, the randInt() method is used to get the computer’s choice of a number (the
number the player is trying to guess). It returns a random number between 1 and 10. Later, a
while statement lets the user guess the number until the guess is co
ect. Then, a return
statement returns to the statement in the main() function that’s after the call to the Play_Game()
function. This return statement doesn’t specify a return value, but it does end the function. This
method has no parameters.
main()
This is where the main lines of codes, and calls to other methods will go.
+++++
Tip: to run your program (where the main() is where your program starts), please include the
following lines of code at the bottom of your program:
if __name__ == ​“​__main__“:
main()
(d) Othe
This program is due 4 / 1 by the end of the day (by midnight). Please submit your .py code as
follows: yourname_Number_Game.py. Please submit it to blackboard (I will show you
where).
Answered Same Day Mar 31, 2022

Solution

Kshitij answered on Apr 01 2022
98 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here