Give me your String:

This is a test string
Press 1 to count the occurrence of a particular letter.

Press 2 to count the total words in your input sentance.

Press 3 to change your input sentance.

Press 4 to exit.

What do you want to do?

1
What letter do you want to count?

s

****The letter s was found 4 times.



Press 1 to count the occurrence of a particular letter.

Press 2 to count the total words in your input sentance.

Press 3 to change your input sentance.

Press 4 to exit.

What do you want to do?

2

****There are 5 words in the input



Press 1 to count the occurrence of a particular letter.

Press 2 to count the total words in your input sentance.

Press 3 to change your input sentance.

Press 4 to exit.

What do you want to do?

3
What is your new input sentance?

This is a second     test      string    with blank    space
****Your input sentance has been changed to "This is a second     test      string    with blank    space"



Press 1 to count the occurrence of a particular letter.

Press 2 to count the total words in your input sentance.

Press 3 to change your input sentance.

Press 4 to exit.

What do you want to do?

2

****There are 9 words in the input



Press 1 to count the occurrence of a particular letter.

Press 2 to count the total words in your input sentance.

Press 3 to change your input sentance.

Press 4 to exit.

What do you want to do?

4
Goodbye