Prepare a game called mysterywordgame

Assignment Help Basic Computer Science
Reference no: EM13690916

Question: Prepare a game called MysteryWordGame. The concept is as follows:

Part 1: Read in the included list of game words(words.txt) and store them into an array. There are 50 words so use that to set the size of your array accordingly.

Part 2: Pick a word at random from the array to be the word the user has to guess. Display to the user how many letters are in the word using dashes or underscores or something similar.

Part 3: Prompt the user to enter a letter. Check to see if the letter is in the word.

Part 4: If the letter is not in the word tell the user. Keep track of this fact because we're only going to give them 10 incorrect letters before the round is over.

Part 5: If the letter is in the word re-display the word with the letter shown in the correct position. Do not keep track of this otherwise as correct letters are considered free turns unlike incorrect letters.

Part 6: Continue prompting the user to enter letters until they have filled in the word or run out of turns. If they run out of turns (10 max) display the word.

Part 7: Ask the user if they want to play again and repeat or quit as indicated.

You should not use any wizard to prepare code, nor should you copy and paste from other source without cleaning it.

Reference no: EM13690916

Questions Cloud

Define the sums of every even column of 2d array : Define the sums of every even column of 2D array in C language - Prepare this program in c language. Show all your work.
How to use wxpython instead of matplotlib : How to use wxpython instead of matplotlib and
Implement a stack adt by writing a class : Instantiate the Stack class in the main function and provide a user loop and a menu so that all the Stack class member-functions, push, pop, etc., are available so that the user can thoroughly exercise the member-functions of the Stack class.
What effect does font selection have on readability : What effect does font selection have on readability and the viewer's perception and How does the use of font further or hinder the intended message?
Prepare a game called mysterywordgame : Continue prompting the user to enter letters until they have filled in the word or run out of turns. If they run out of turns (10 max) display the word.
Improve the website for cse : You need to improve the website for CSE Center for Health Information Technology to make it more functional and informational.
Make a function in dr racket : Make a function in Dr Racket that consumes a string and figures out if it starts with a specific letter of the alphabet - Can you help me how should I go about this? Please any ideas?
Who developed the ibm pc : What is the code name for the 12 engineers who developed the IBM PC and In which year did Amazon.com report that for the first time sales of e-books exceeded the sales of hardcover books?
Train traveling in terms of minutes : Write a code for the following C++ problem. We will have a user that will be asked to input the time of a train traveling in terms of minutes and these minutes is a non-negative integer.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Writing quality and formal structure of the paper

Writing Quality and formal structure of the paper

  Write down differences in company policies of firm

For Firm ABC, each of the relations is in 3NF. Write down two differences should exist in company policies of Firm ABC? Explain your answer.

  Write the definition of a class player containing

Write the definition of a class Player containing: An instance variable name of type String , initialized to the empty String. An instance variable score of type int , initialized to zero.

  How would you communicate the design of method to developer

How would you communicate the design of method to a developer that must implement a complex algorithm and ensure that they implement correctly when provided good inputs as well as handle bad input and no input scenarios?

  Write a unit test of minmax in a main function

Write a function that computes the minimum and maximum of two integer variables and returns them through call-by-refernce parameters. It should have the following prototype: int minmax(int a, int b, int * min, int * max); Write a unit test of minm..

  Write a module to determine mean of the grades

Write a module to print the student's id, name, and grade for student with highest grade and with lowest grade, respectively.

  What sort of system are you building

Create a spreadsheet listing all of the components, their prices, the place or website you could purchase, the cost of each component, and an explanation of why you would choose this part - What sort of system are you building? What tasks are requi..

  Create two files edit your new file using gedit vi and chage

Create two files. • File1 has one line with the value of 5. • File2 has one line with the value of 100. Edit your new file using Gedit or VI and change it so it performs the following actions

  Completing a system for meecham feeds

Systems analysis team is close to completing a system for Meecham Feeds

  Show how would be eliminating any conflict of the interest

Show how this would be eliminating any conflict of the interest?

  Develop an interface evaluation questionnaire

Develop an interface evaluation questionnaire that contains 20 generic questions that would apply to most interfaces.

  What is the probability of rolling the outcome snake eyes

What is the probability of rolling the outcome "snake eyes" (two ones) with these loaded dice? (c) What is the expected value of our random variable X with respect to this unfair distribution?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd