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

Word “Game” 1) Present a page (start.html) to a user to select (from a drop down

ID: 3886012 • Letter: W

Question

Word “Game”
1) Present a page (start.html) to a user to select (from a drop down box or equivalent) a number of
letters between 5 and 20. When the user submits their choice you need to link to a page (php)
that displays a random set of letters for the user (duplicates are allowed). This php file should
also save the letters to a file. (You may choose the format of the file, as you will have to read
back in from the file later). All pages should have links to previous pages as appropriate. Don’t
force the user to use the back button on the browser. The php file should have three buttons
(each button links to a new php file):
a. One to give all substrings of the letters. (i.e. if you count the set of letters as a string,
you should generate all substrings of the string of random letters). If your random
letters are a,b,c, this step should generate a,b,c,ab,bc,abc. (hint: you may need to read
the letters in from the file you saved in step 1). Write the substrings to a new file.
b. One to give all permutations of the letters. If your letters are abc, you should generate
abc, acb, bac, bca, cab, cba. Write these permutations to a new txt file.
c. One to give a link to a third php file as detailed below in step 2.
2) In order to find all possible words from a set of letters, we will start by generating all
permutations of your random letters. Then generate all substrings of all the permutations.
Then find all permutations of that set. This is the set of all possible words from your initial set of
letters. There may be duplicates. Find a way to avoid the duplicates (an associative array or a
set will work for this). This php file will need to display all possible words (make it neat!).

Explanation / Answer

select:invalid { color: gray; } Please Choose... Open when powered (most valves do this) Closed when powered, auto-opens when power is cut
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote