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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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