Question: Need help writing this program COP2220 Program 1 Algorithm example Letter Guess game 1. Greet the user and display instructions 2 Ask the user how
COP2220 Program 1 Algorithm example Letter Guess game 1. Greet the user and display instructions 2 Ask the user how many games they want to play 3. Get the number of games from the user 4. Get a letter from the file 5 Change the letter to uppercase 6. Ask the user to guess a letter 7. Get the users guess 8. Change the users guess to uppercase 9 Check if the users guess matches the letter from the file if it is a match tell the user they have won and go to step 11. if it is not a match, give the user feedback and go to step 10. 10. Check if the user has used up the maximum number of guesses if the user has not used up the max guesses go to step 6. if the user has used up the max guesses tell the user they have lost and go to step 11. 11. Check if the number of games the user wanted to play have been played if the user has more games to play go to step 4. 12. say good bye to the user COP2220 Program 1 Algorithm example Letter Guess game 1. Greet the user and display instructions 2 Ask the user how many games they want to play 3. Get the number of games from the user 4. Get a letter from the file 5 Change the letter to uppercase 6. Ask the user to guess a letter 7. Get the users guess 8. Change the users guess to uppercase 9 Check if the users guess matches the letter from the file if it is a match tell the user they have won and go to step 11. if it is not a match, give the user feedback and go to step 10. 10. Check if the user has used up the maximum number of guesses if the user has not used up the max guesses go to step 6. if the user has used up the max guesses tell the user they have lost and go to step 11. 11. Check if the number of games the user wanted to play have been played if the user has more games to play go to step 4. 12. say good bye to the user
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
