Question: q1 plz Question 1: Write a program to play the following game. There is a list of several country names that was read from a
Question 1: Write a program to play the following game. There is a list of several country names that was read from a file and the program randomly picks one. The player then must guess letters in the word one at a time. Before each guess the country name is displayed with correctly guessed letters filled in and the rest of the letters represented with dashes. For instance, if the country is Canada and the player has correctly guessed a, d, and n, the program would display _ana_da. The program should continue until the player either guesses all of the letters of the word or gets five letters wrong. Make the program read the countries from a file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
