Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask C/C++ Expert


Home >> C/C++

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.

C/C++, Programming

  • Category:- C/C++
  • Reference No.:- M9717187
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in C/C++

What are the legal requirements with which websites must

What are the legal requirements with which websites must comply in order to meet the needs of persons with disabilities? Why is maximizing accessibility important to everyone?

Project - space race part a console Project - Space Race Part A: Console Implementation

Project - Space Race Part A: Console Implementation INTRODUCTION This assignment aims to give you a real problem-solving experience, similar to what you might encounter in the workplace. You have been hired to complete a ...

Question 1find the minimum and maximum of a list of numbers

Question: 1. Find the Minimum and Maximum of a List of Numbers: 10 points File: find_min_max.cpp Write a program that reads some number of integers from the user and finds the minimum and maximum numbers in this list. Th ...

Software development fundamentals assignment 1 -details amp

Software Development Fundamentals Assignment 1 - Details & Problems - In this assignment, you are required to answer the short questions, identify error in the code, give output of the code and develop three C# Console P ...

Assignment word matchingwhats a six-letter word that has an

Assignment: Word Matching What's a six-letter word that has an e as its first, third, and fifth letter? Can you find an anagram of pine grave. Or how about a word that starts and ends with ant (other than ant itself, of ...

1 implement the binary search tree bst in c using the node

1. Implement the Binary Search Tree (BST) in C++, using the Node class template provided below. Please read the provided helper methods in class BST, especially for deleteValue(), make sure you get a fully understanding ...

There are several ways to calculate the pulse width of a

There are several ways to calculate the pulse width of a digital input signal. One method is to directly read the input pin and another method (more efficient) is to use a timer and pin change interrupt. Function startTi ...

Why do researcher drop the ewaste and where does it end

Why do researcher drop the ewaste and where does it end up?

Assign ment - genetic algorithmin this assignment you will

ASSIGN MENT - GENETIC ALGORITHM In this assignment, you will use your C programming skills to build a simple Genetic Algorithm. DESCRIPTION OF THE PROGRAM - CORE REQUIREMENTS - REQ1: Command-line arguments The user of yo ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As