Solve this problem, include c++ code and flowchart please. Problem Bad Spelling (Recurse) Problem Overview: Annagramma Hawkin is a witch… but not a very good one. According to some very senior witches she is overly concerned with flashy magics and not nearly concerned enough about real problems facing real people. Her latest equipment acquisition underlines this flair for the dramatic. She bought an enchanted Boggle set. This device functions by generating a 5x5 grid of letters. Any sequence of letters connected to each other either by being beside or diagonal from each other (with each letter used only once) creates a successful and entirely satisfyingly flashy spell. It really just saves witches from having to generate their own spell names and allows them to avoid the use of ones like: Hocus Pocus.   For example, consider a 5x5 grid with random letters as depicted below. The object is to find words formed in the grid by contiguous sequences of letters. Letters are considered to be touching if they are horizontally, vertically, or diagonally adjacent. For example, the board: Q W E R T A S D F G Z X C V B Y U A O P G H J K L contains the magic words WAS, WAXY, JOB, and others, but not the word BOX. Words can contain duplicate letters, but a single letter in the grid may not appear twice in a single word, for example POP is not contained in this grid. You will write a program that displays a random board, and allows the Annagramma (the user) to enter words found in the grid. Have the program report if the word entered by the user is indeed in the grid. Hint: Search the board for the first letter of the word entered, and then recursively search around the found letter for the remaining letters of the word. Problem Components: ● Randomly generate a 5x5 grid of letters ● Create an interface to allow for the entry of a candidate word ● If the word if found, the user interface will indicate this, if not, it will also inform the user ● Allow for multiple words on the same grid to be guessed ● Also allow for the ability to generate a new grid

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Solve this problem, include c++ code and flowchart please.

Problem Bad Spelling (Recurse)

Problem Overview:

Annagramma Hawkin is a witch… but not a very good one. According to some very senior witches she is overly concerned with flashy magics and not nearly concerned enough about real problems facing real people. Her latest equipment acquisition underlines this flair for the dramatic. She bought an enchanted Boggle set. This device functions by generating a 5x5 grid of letters. Any sequence of letters connected to each other either by being beside or diagonal from each other (with each letter used only once) creates a successful and entirely satisfyingly flashy spell. It really just saves witches from having to generate their own spell names and allows them to avoid the use of ones like: Hocus Pocus.

 

For example, consider a 5x5 grid with random letters as depicted below. The object is to find words formed in the grid by contiguous sequences of letters. Letters are considered to be touching if they are horizontally, vertically, or diagonally adjacent. For example, the board:

Q W E R T

A S D F G

Z X C V B

Y U A O P

G H J K L

contains the magic words WAS, WAXY, JOB, and others, but not the word BOX. Words can contain duplicate letters, but a single letter in the grid may not appear twice in a single word, for example POP is not contained in this grid.

You will write a program that displays a random board, and allows the Annagramma (the user) to enter words found in the grid. Have the program report if the word entered by the user is indeed in the grid.

Hint: Search the board for the first letter of the word entered, and then recursively search around the found letter for the remaining letters of the word.

Problem Components:

● Randomly generate a 5x5 grid of letters

● Create an interface to allow for the entry of a candidate word

● If the word if found, the user interface will indicate this, if not, it will also inform the user

● Allow for multiple words on the same grid to be guessed

● Also allow for the ability to generate a new grid

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Reference Types in Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education