Question: C++ Your job is to write a program that: - Asks the user for a string of letters that they have in their hand. -
C++ Your job is to write a program that: - Asks the user for a string of letters that they have in their hand. - Asks the user for a letter to be placed on the board. The letter can be placed at the beginning or end of the word. (You should ask the user). - Using a recursive backtracking function, finds all legal words that can be made out of some subset of the letters in the players hand, with the board letter either at the beginning or end of the word (depending on what the user entered). Each tile will be used at most once, but its possible for two different tiles to have the same letter. - Prints out the score for the word. The score is based on the letters used:
| A | 1 | N | 1 |
| B | 3 | O | 1 |
| C | 3 | P | 3 |
| D | 2 | Q | 10 |
| E | 1 | R | 1 |
| F | 4 | S | 1 |
| G | 2 | T | 1 |
| H | 4 | U | 1 |
| I | 1 | V | 4 |
| J | 8 | W | 4 |
| K | 5 | X | 8 |
| L | 1 | Y | 4 |
| M | 3 | Z | 10 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
