Adam might have forgotten to loop the guessing code, meaning that instead of letting him guess multiple times, it simply does it once and ends the program. This could be fixed by adding a while loop, or something of the sort, that doesn't let the user finish the program until they guess the number correctly, while adding to the variable that stores the number of guesses each loop.
This question is incomplete. The complete question, answer & explanation for this question is given in the attachment below.
Explanation:
the answer in the image above
Answer:
typing, commands, scrolling. hope this helps