Hello, I'm struggling with my assignments. Can someone help me to create a functions program with functions inFLOWGORITHM usingDO LOOPS?
Write a program that allows the user to think of a number between 0 and 100, inclusive. Then have the program try to guess their number. Start at the midpoint (50) and ask the user if their number is (h)igher, (l)ower, or (e)qual to the guess. If they indicate lower, guess the new midpoint (25). If they indicate higher, guess the new midpoint (75). Continue efficiently guessing higher or lower until they indicate equal, then print the number of guesses required to guess their number and end the program.
Thank you in advance for your help
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here