Question: Read a dictionary words.txt and ask for 2 words and return how many words are between those two words. For example, if you type tiger

Read a dictionary "words.txt" and ask for 2 words and return how many words are between those two words. For example, if you type tiger and lion, you should have the following output:

Please type in 2 words? tiger lion There are 70237 words between tiger and lion

Assume that a user types only lower case letters.

I could not attach the "words.txt." to this document.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Databases Questions!