Implementnbsp the lsquoguess the word game in an

Assignment Help C/C++ Programming
Reference no: EM13347570

Implement  the ‘Guess the Word' game in an object-oriented manner. This program would add some basic manipulation of strings - reading, comparing, writing, finding the length, etc.

Instructions

Prepare a program that implements the ‘Guess the Word' game. The game could have five levels. Each level would need the player to guess four words correctly before moving to the next level. The game could become more challenging with each passing level. The data in input file comes in 3 parts delimited by the ‘#' character. The first set are the hardest words, the second medium complexity and third the ‘easy' ones. So one possibility is for the first two levels you would use the ‘easy' words, for the next two levels selects the word to be guessed from the second category and for the last level choose from the ‘hardest' words. To distinguish between the two levels using words from same category, one would show three characters and leave the rest to be guessed while the other displays only two characters; or, the easier level could show the first char as one of the characters shown (it is easier to guess the word when you know the first character). The rules you choose are up to you but you need to distinguish between the five levels. Each level should be scored separately and the scored added to the cumulative score when the level ends or the game ends. The game starts with asking the player for his/her name and ends with displaying the final information.

To summarize the steps:

1. Load the dictionaries of words from a user specified file.

2. The word to be guessed should be chosen randomly from the appropriate category.

3. Display the partial word with appropriate number of dashes.

4. Read user input and display corresponding result.

5. Get user choice to continue/ stop playing.

6. Output should go both to the screen and an output file

Programming concepts that are expected in the solution:

1. Object oriented modular solution

2. File input and output

3. Use of selection and repetition constructs

4. Use of random function

5. The class used should have constructors and overloaded input and output operators.

Reference no: EM13347570

Questions Cloud

Question 1 a firm with market power has estimated the : question 1 a firm with market power has estimated the following demand function for its productq 12000 - 4000 pwhere p
Write a program that allows interactive manipulation of the : write a program that allows interactive manipulation of the position and orientation of a camera. prepare a teapot at
Charge is distributed with constant volume density d : charge is distributed with constant volume density d throughout the rectangular box with length a width b and height
1 tree map for why do science2 bubble map for empirical : 1 tree map for why do science?2 bubble map for empirical evidence3 double bubble map for scientific theory and
Implementnbsp the lsquoguess the word game in an : implementnbsp the lsquoguess the word game in an object-oriented manner. this program would add some basic manipulation
Write an essay on lockes theory of meaning question based : write an essay on lockes theory of meaning question based on essayexplain lockes theory of how words have meaning.what
1 on april 2 lana executed a contract to sell her office : 1. on april 2 lana executed a contract to sell her office building to swanky realty inc. for 1000000. the transaction
Prepare a marymount faculty site and you have each been : prepare a marymount faculty site and you have each been provided a professor to profile.nbsp you have to use html5 and
American society in the making1who principally shaped life : american society in the making1.who principally shaped life in spanish north america?2.what were the three regions of

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Saddle point is an element

For a square nXn a array, a saddle point is an element that is the maximum in its row and the minimum in its column.

  Need a program that has the user enter a string

Need a program that has the user enter a string. The program will test to see if its a exact palindrome like "civic" or "level". then it should test if its an inexact palindrome like "a nut for a jar of tuna".

  The reverse of each word, and a palindrome checker

give us the first letter of each word, the first half of each word, the reverse of each word, and a palindrome checker to see if the word is a palindrome.

  Prepare a program that uses at least two functions

Prepare a program that uses at least two functions that can be called from your main.

  Write a function named sort3

Write a function named "sort3" that takes three floating point arguments, call them "x" , "y" , and "z" , and modifies their values, if necessary, in such a way as to make true the following inequalities: x y z .

  Write a program using for loops t

Write a program using for loops to produce the following output. Please read carefully the entire specification!

  Write a function named concatenate

If the function discovers that the number of cells in the large array is not large enough to hold all the numbers to be copied into it, then the function should return 0 to indicate failure.

  A hierarchical jpeg encode decoder for greyscale images

This project is to develop a program that implements a hierarchical JPEG encoder/decoder for greyscale images.

  Reads in a list of integers

Write a program in C++ that reads in a list of integers into and array with base type int. Provide the facility to either read this array from the keyboard or from a file, at the user's option. If the user chooses file input, the program should reque..

  Reverses the characters in a character array

Write the function reverseit that reverses the characters in a character array. You must also write main that calls reverseit.

  Generate a random number each time the operator is used

The function call operator is overloaded and will generate a random number each time the operator is used and objects can be created with the lower and upper bound of the random number specified.

  What is the output of the following code

What is the output of the following code?

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