Question: Modify your randSeq.html page (from Exercise 9.12) so that it instead generates random 4-letter sequences. When the user clicks on a button, the GenerateSequence function

Modify your randSeq.html page (from Exercise 9.12) so that it instead generates random 4-letter sequences. When the user clicks on a button, the GenerateSequence function should be called to generate and display a sequence of 4 randomly chosen letters.

Use your modified page to generate 4-letter sequences using the entire alphabet. How many sequences do you have to generate before you obtain an English word? Would you expect it to be more or less likely to obtain a 4-letter word at random when compared to 3-letter words? Explain your answer.

Step by Step Solution

3.42 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

4letter words are less like... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

1409-C-S-O-S(1020).docx

120 KBs Word File

Students Have Also Explored These Related Operating System Questions!