subject

In this assignment, you are to write a program that guesses what you have in your mind. No, computers can't read your mind; but at least guess a number you have in mind given that you tell the program whether the number the program guessed is higher or lower than your number. Since humans are much more creative than the computer applications, we will level the playing field by limiting the number we select to be in between 1 and 100.The program should work as following: 1. You will pick a number between 1 and 100. This number should never be used in your program 2. The program should pick a random number in between 1 and 100. 3. The program asks user whether the number is correct, higher, or lower 4. If it is the correct guess, print "Correct guess" and exit out of the program. 5. If not correct, answer "h", or "l" to indicate the guess is either higher or lower than the correct number. 6. If lower, then the next number should be higher than the previous guess. 7. If higher, then the next number should be lower than the previous guess. 8. Repeat steps 3 through 7 until the correct guess is made. 9. The program should keep track of the number guesses made until the correct guess. 10. Capture screen outputs of all guesses and responses along with the final number of guesses taken,

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
When working with a team you should always do the following, except? question 3 options: be dependable and trustworthy be sensitive to others feelings do your fair share critique members of the group
Answers: 2
question
Computers and Technology, 24.06.2019 09:00
Technician a says that a new replacement part is always good. technician b says that sometimes recent repair work will be the cause of a complaint. who is correct? a. both technicians a and b b. technician a c. technician b d. neither technician a nor b
Answers: 3
question
Computers and Technology, 24.06.2019 11:00
Under the home tab, where can a user find options to change the bullet style of an outline? in the slides group in the font group in the paragraph group in the drawing group
Answers: 1
question
Computers and Technology, 25.06.2019 02:00
Feedback is one of the basic elements games have in common true false
Answers: 2
You know the right answer?
In this assignment, you are to write a program that guesses what you have in your mind. No, computer...
Questions
Questions on the website: 13722366