Question: Create a while loop that tests that guess is a digit string then in the loop: if digit ( read from pi file ) is
Create a while loop that tests that guess is a digit string
then in the loop:
if digit read from pi file is read the next character for digit
else if digit is
increment seed and use seed to set the pointer uing seek
else see if guess is equal to digit
a if guess equals digit: print "correct" and increment the varible named correct
b if guess not equal digit: print "incorrect" and increment the variable named wrong
end the while loop when user enters any nondigits for guess, like q
Print correct and wrong values within a message to the user.
Close the pi file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
