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

  Change this code to read in strings from a text file

code takes in a string from a user, checks if the paranthesis are ballanced (as defined by my class) and also returns the variable from my line (also from my class). All like to change this code to read in strings from a text file (each line is a str..

  If a class is derived protected

If a class is derived protected from a base class, explain how this affects the inheritance of all public, protected, and private members of the base class by the derived class.

  A pattern detector has an input

A pattern detector has an input a 4 x 4 matrix whose elements take values a, b, c, or d. The output is 1 if the matrix contains one b surrounded by eight a's and 0 otherwise.

  Display your name in the title bar

Display your name in the title bar of the browser, declare the DOCTYPE for HTML5, and create a comment listing the lab number, the author, and the date.

  Write a c function to convert gallons-quarts-pints and cups

Write a C function named liquid() that is to accept an integer number and the addresses of the variables gallons, quarts, pints, and cups.

  A palindrome is a number

A palindrome is a number or text phrase that reads the same backward as forward. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 34543 and 11611. Write a program that reads in a five-digit integer and determines ..

  20 integers saved in a file called "data.txt"

There are 20 integers saved in a file called "data.txt" (just a random txt file with some numbers) All integers are in the range from 1 to 10

  This function should accept a two-dimensional

getLowestInRow. This function should accept a two-dimensional array as its argument and an integer as its second argument. The second argument should be the subscript of a row in the array. The function should return the lowest value in the specif..

  Prepare a temperature converter

Have to write a small program that prompts the user to enter a temperature in degrees Fahrenheit and then prints a massage as to whether the alarm will sound at that temperature.

  Program loops and if conditions write a program that

program loops and if conditions write a program that requests a password after the authorprogram information is

  Give a recursive definition of s.

Let S be the set of positive integers that can be written as a sum of one or more 4's and/or 7's. For example, 7 ? S and 18 ? S (because 18 = 4 + 7 + 7)

  Calculate the net pay as the gross less the taxes

Design and code a new function that accepts as parameters the gross pay by value and the federal tax, state tax, local tax, SS tax, and net Pay by reference.

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