Write a program for a word game called Letter Challenge Quest. In this game, a player provides a string of jumbled letters and a list of words. The goal is to determine which words from the list can be created using the letters from the jumbled string. Each letter from the jumbled string can only be used once for each word. Create a function named checkWord(jumbled, word) that takes two strings - the jumbled letters and a word from the list. The function should return a Boolean value: True if the word can be formed using the letters from the jumbled string, and False otherwise. This function should ascertain if a given word can be constructed using the letters from the jumbled string without exceeding their respective frequencies. In the main part of the program, ask the user to input a string of jumbled letters. Then, ask the user to enter the number of words they want to check against the jumbled string . Input each word from the user and store them in a list called wordList. For each word, call the checkWord function and display the word along with whether it can be created using the jumbled letters. Implement a loop to allow the user to play the game multiple times.
I moved your topic to an appropriate forum category @gekkooo.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.
Thanks in advance for your cooperation.
Welcome to the forum
When is our assignment due to be handed in and what parts of it have you written already ?
Most people that come here looking for code to plagiarize for school work are are at least smart enough not to post the entire assignment verbatim. I guess that's not the case here, or perhaps OP is too lazy to care.
Nice project! Are you going to write in C++ or Python? Which Arduino will you use?
You can read Serial Input Basics - updated to get ideas how the user can input information to your program. wordList will be a two dimensional character array (set yourself a limit of e.g. 10 entries).
You will need a variable (character array) to store the jumbled text; and a variable to store the number of entries (the above link uses atoi to convert text to integer).
Start with that. Once that works to your satisfaction you can start working on the checkWord(jumbled, word) function and the looping through the wordList.