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

q1 plz q1 plz Question 1: Write a program to play the following game.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!