Calculate # of mobile phone keystrokes for words
For a series of words, I need to know how many buttons on a mobile phone that a user has to press in order to type the word
out.
For instance, "apple" will take 8 presses to type out on a phone.
a - press the 2 button
p - press the 7 button
<pause>
p - press the 7 button
l - press the 5 button 3 times
e - press the 3 button 2 times
The <pause> is b/c on most mobile phones, if a bunch of characters are assigned to the same number, you have to wait before
the phone will allow you to enter a new character.
What I need is for you to write a program that will
1. generate all possible English 4 to 6-letter combinations
2. For each letter combo, add the following letters:
com
net
ws
be
at
cc
us
3. Count the number of characters, keystrokes, and pauses.
Example.
1. Your program is at the letter combo "jlan"
2. For "jlan", calculate the chars, keystrokes and pauses for
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL], etc.
ignore the "." in your calcuations.
3. For "[login to view URL]", the resulting data would be:
7 characters
14 keystrokes
2 pauses (when typing the j-l and o-m)
Please produce a comma-delimited result file that contains letter combinations of ****13 keystrokes**** or less. I don't need
all the results, just the ones that result in 13 keystrokes or less. Please also provide the program that does this. The
program can be written in any language (but hopefully in Java, C#, VB.NET, Perl, Python)
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
The program can be written in any language (but hopefully in Java, C#, VB.NET, Perl, Python)