Question: Could anyone help me plzz urgent for exam Program design type program that includes and utilises the functions described above to simulate the letters game
Could anyone help me plzz urgent for exam
Program design
type program that includes and utilises the functions described above to simulate the letters game from the Countdown game show. The program should ask the user nine times to select a consonant or vowel characters before reporting a set of nine corresponding randomly generated letters. The program should then then give the user a chance to input their best guess at the longest word that can be created from those letters. The users guess should then be checked and the number of points they scored should be reported back to the user. The number of points is the length of a correct answer. Finally, the longest words that can be made from the characters, should be computed by the program and printed, that is all the longest possible words that can be made from the characters selected.
Reference:
following are the three parts above this question
Random character selector
write a function called select characters that asks the user to input a 'c' for a consonant or a 'v' for a vowel nine times and returns a string with the corresponding number of random consonant and vowel characters.
Dictionary reader
write a function dictionary reader that takes a string argument containing a filename. The function should open the relevant file, iterate through each line to get a list of the words in the file that are required for the game and return the list. Use this function to read a file called 'words.txt'
Word look up algorithm
write a function called word lookup that takes a string argument. The function should check if the characters in the string can be used to make any of the words in the 'words.txt' file. Note characters cannot be resampled so each character in the string argument can only occur once in the target word from 'words.txt'. The longest word, and any other words of that length, found in the 'words.txt' file that can be made from the characters in the string argument should be returned in a list.
Inside the word.txt look like this
A
a
aa
aal
aalii
aam
Aani
aardvark
aardwolf
Aaron
Aaronic
Aaronical
Aaronite
Aaronitic
Aaru
aback
abactinal
.....................etc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
