Develop a letter guessing game in this assignment.

Requirements:

1). When the game is started, generate a random letter between A and Z;

2). Display a message "I have a secret letter (A to Z), can you guess what it is?";

3). Read the user's answer;

4). Compare the user's answer and the random secret letter generated;

5). If the user answer is before the random secret letter in the alphabet, display "Incorrect. Try something bigger" and go to Step 2;

6). If the user answer is after the random secret letter in the alphabet, display "Incorrect. Try something smaller" and go to Step 2;

7). If the user answer is the same as the random secret letter, display "Well done. Want to play again (y/n)?";

8). Read the user's answer. If the answer is 'y', go to Step 1. If the anser is 'n', go to Step 9.

9). Display "Thanks for playing the game. Goodbye!". The program stops.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.