Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This assignment moves us past simple single-file programs into more interesting

ID: 3878715 • Letter: T

Question

This assignment moves us past simple single-file programs into more interesting multi-file program:s We also write a game that, if not a viable League of LegendsTM competitor, is at least reasonably enjoyable at the Extreme Bonus level. Along the way, we'll utilize a Makefile, either the ddd or gdb debugger, and Umbrello to design our class and use case diagrams Full Credit Requirements Boom is a classic word or phrase guessing game with limited tries and something catastrophic if the word is missed - a firecracker goes (you guessed it) "Boom!". A game in progress looks something like the screen shot to the right. Below is a simple UML class diagram of the Full Credit version of the game. Note that Main isn't actually a class it's simply the usual main function. This time around, implement a h and cpp for each class ain + main): int izzl use - solution : string - quesses 2551: bool + Puzzle(solution : string) + guess(c: char): boo + solve(proposed solution: string): string + to_string): string + get solution(): strin - time: int + Fuse(time: int + burn(): bool + to string): strin The Puzzle class represents the game. The solution field is the string that is the word or phrase the player is trying to guess. The guesses array (like a vector, but without methods) holds a Boolean for each ASCII character. For example, guesses[a is true if 'a' has been guessed, false if not. The Puzzle constructor accepts the solution, which should be stored in _solution. The guess method accepts a single character (the player's guess), and returns true if the character is valid (between 'a' and

Explanation / Answer

class Puzzle
{
private:
string solution;
char c;

string Proposed_solution;

public:
void puzzle(string solution)
{ if solution = 'a ' then

Cout << " Guess is true "

Cout << " Guess s false";

return solution;

}

// Function to print Welcome message

void welcomemsg ()
{
cout < < "==================================";

cout << " BOOM !"

cout << "===================================="
  
}
};

// function to print cracker

void printcracker()
{
cout < < "------------- *";

cout << " / ";

cout << " ,+ ,";

cout << " / /";

cout << " / _ /";

cout << " --- ------------------- ------------------- ------------------ ";

cout << "===================================="
  
}
};

// solution for 3b question

function winner()

winner()