Create a simple guessing game from specification Specification: You…
Question Answered step-by-step Create a simple guessing game from specification Specification: You… Create a simple guessing game from specificationSpecification:You are to develop a program that will play a simple guessing game. You are given the range that the number is in and then told “higher” or “lower” after each guess until you succeed in guessing it or run out of guesses. The Python program creates and holds the initial random number, and it is up to you (the user) to guess correctly. Use variables or constants to make it simple to extend to a different range and have more potential guesses.A sample run of the program may go something like (Your entries in Bold)OK I have thought of a number between 1 and 10What is your guess? 5The number is higher than that.What is your guess? 9The number is lower than that.What is your guess? 6Wow! You guessed it in 3 tries Alternatively, you may run out of guesses:OK I have thought of a number between 1 and 10What is your guess? 5The number is higher than that…What is your guess? 8The number is higher than thatBut you have run out of guessesThe number was: 9 What you need to complete When you review the requirements for the program you should notice that some information has not been provided. You will need to ask a representative of Gelos three questions regarding the project. Be clear and specific in your request for each piece of information and use correct terminology – it is not enough to say, ‘what about retries?’ and assume they will know what you mean. You need these requirements before you can proceed with designing a solution.The following table lists the missing information. Fill in the right-hand column of this table to prepare your questions to ask the Gelos representative. Table 2 Questions template Ask a question about: What question will you ask the Gelos representative?The programming language to be used for the project The range of numbers that the computer should select from before the player begins guessing The number of guesses that a player is allowed before losing ANSWERS: To get the answers to these questions you need to:Fill in the email template (Gelos Email Template) with your three questions. Make sure it is addressed to Gelos Representative, dated and has your details in it.Save, upload and submit it to this Upload Point in the Learning Management System (Moodle) for Task 1 a) Confirm Program RequirementsPlay the Audio/Video recording that becomes available after you have submitted it.Record the information below for reference during the design processProgramming LanguageRange of numbersNumber of guesses Other Information provided: Design a solution to this problem and document it using pseudo-code or a flowchart. Provide updated versions of these if you expand their details as you develop your solution.Produce appropriate Python code to obtain a similar output to the samples given above based on your documentation. The python code must include internal documentation briefly describing what the program is doing in sections. (Initialisation, processing, decisions, and final output.)Test that your program operates according to the initial specification and the additional parameters that you gained from the video responses to your questions. Provide screen snips of the testing that you have done with your program including a description of how you tested overall and at least 3 sample snips of you using the debugger in IDLE (or similar) to step through your program line by line. Does the program work? How do you know for certain?Demonstrate the game to another person (The other person may include another student enrolled in the same unit, a colleague, an industry expert/representative, or your teacher). Have them confirm that the game plays as expected (meets the software specifications given initially and in the answers from Task 1 a) above). Have them write a short note confirming such from them as if they were the requestor of the program.Checklist:Your Program must: Use an import command to enable the program to create the random number to be guessed☐ Use a constant for the maximum number of guesses and lower and upper range values☐Use sequence, selection, and iteration (loops) structures to achieve the specified outcome (all three structures)☐Have sufficient internal documentation (comments) to allow the program to be followed by a person new to programming☐ Computer Science Engineering & Technology Python Programming ICTPRG 434 Share QuestionEmailCopy link Comments (0)


