This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 15-121: Introduction to Data StructuresFall 2009Exercise09/03/2009Cell Phone TapsDue: Fri, Sept 118am Relevant Reading:•Chapters 1-5 of the online text by Eck.•Appendix B of the Lewis and Chase book.Assignment: (worth 10 exercise points) Using the code in CellPhoneTaps.zip. You are all familiar with cell phone pads such as the one shown. As part of this exercise, you will write code that will determine the Cell Phone Multi-tap Number, and the Cell Phone Predictive Number (represented as a String) for a given word or phrase. That is, given a word, you need to return a String that represents the series of digits to press for the word.See Wikipedia for more explanation on this.Cell Phone Multi-tap: You need to hit the key the right number of times for the given letter. Thus, "Scott" would require "777722266688"Cell Phone Predictive Text Number : You need to hit the appropriate key only once. [In this case, it is up to the mobile device to figure out what you mean or ask for more info.] For instance:to the mobile device to figure out what you mean or ask for more info....
View Full Document
This document was uploaded on 12/19/2009.
- Spring '09
- Data Structures