You are going to be writing a program that will create a
guessing game that is to be played with the computer. In this version of the
guessing game the user will be choosing a random number in his or her own head
and keeping it a secret from the computer. The computer will generate a guess
at the number and ask if it is correct. The user will answer appropriately. If
the user indicates the guess was correct then the game will end. If they user
indicates the guess was incorrect the user must indicate if the guess was too
high or too low. If the user indicates too high the computer will generate
another logical guess that would be lower than the previous guess. If they user
indicates too low the computer will generate another guess higher than the
previous guess. The program must also never guess outside of an approprate
range based upon all previous guesses. This cycle will repeat until the
computer guesses the correct answer or until 7 guesses have been made. If the
computer guesses it then it should win if the computer cannot guess it then it
should say you win. Guesses should be between 1 and 100 inclusively. To earn
full credit you will need to plan and code the above scenario
● You will need to
submit a full set of pseudocode for the above scenario
● The program should be well commented, have self
documenting identifiers, and easy for someone reading the code to know what the
conditions are testing.
● The programs should
have easy to read and understand prompts. There should be no ambiguity as to
what a proper response is when executed. ○ For example, have someone else play
your game without any direction. If they can follow it then you likely have
clear prompts that are easy to respond too.
● The main logic of the program should be held in the main
method and it should call all supporting methods to achieve the desired result.
○ You will be scored on your abstractions and your ability to implement those
abstractions. See the rubric for specific conditions.
● At least 2 abstractions outside of the main method are
created. At least one is a function returning information to be used in a
meaningful way, and at least one module built do simplify the program logic.
The abstractions need to be created and used correctly in the context of the
problem.
● All input must be
validated to be appropriate input. The program should not accept input that
isn’t going to result in a proper execution
Requirement
Flowchart
Pseudocode
Phyton programming
Kindly see below the link for output. Output must be matched
on below link
https://www.youtube.com/watch?v=yDm9IL2is5o&feature=youtu.be
Get Free Quote!
358 Experts Online