subject

Phone numbers and pin codes can be easier to remember when you find words * that spell out the number on a standard phone pad. for example, instead of * remembering the combination 5282, you can just think of java. * this program contains a recursive method called enumeratewords that given a * number, yields all possible spellings.'
need to fill in the blanks

import java. util. scanner;

/**
converts a numeric pin to an equivalent word using the digit to
letter mapping on a standard telephone keypad.
*/
public class pinwordenumerator
{
public static void main(string[] args)
{
scanner scan = new scanner(system. in);
system. out. print("enter a pin number-> ");
string num = scan. nextline();
system. out. println();
system. out. printf("the keypad encodings for %s are: %n",num);
enumeratewords(num);
}

/**
a wrapper for a recursive method that enumerates all the
phone keypad encodings for a number.
@param n a string representing the number
*/
public static void enumeratewords(string n)
{
// implement a recursive method that generates
// all possible phone keypad encodings for a
// number. implement additional auxiliary methods
// if necessary.
}



}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
How to launch an app: steps to be successful? launching an app is a great idea, but it’s not that easy as we supposed to think. the majority of mobile applications don’t generate revenue because companies aren’t ready to be competitive. referring to our experience in successfully building and launching apps we hope to you omit these difficulties. we are going to talk about ideas, marketing, testing your product, its development, distribution and support. you will learn 8 product launch stages to succeed.
Answers: 1
question
Computers and Technology, 23.06.2019 02:50
Define a class named movie. include private fields for the title,year, and name of the director. include three public functions withprototypes void movie: : settitle(cstring); , voidmovie: : setyear(int); , void movie: : setdirector(string); . includeanother function that displays all the information about a movie.write a main() function that declares a movie object namedmyfavoritemovie. set and display the object's fields.this is what i have but know its wrong since it will notcompile: #include#includeusing namespace std; //class declarationclass movie{private: string movietitle ; string movieyear; string directorname; public: void settitle(string title); void setyear(string year); void setdirector(string director); void displayinfo(); }; //class implementationvoid movie: : settitle(string title){ movietitle = title; cout< < "what is the title of themovie? "< > temp; myfavoritemovie.settitle(temp); cout< < "enter movie year"< > temp; myfavoritemovie.setyear(temp); cout< < "enter director'sname"< > temp; myfavoritemovie.setdirector(temp); //display all the data myfavoritemovie.displayinfo(); system("pause"); return 0; this code is not entirely mine someone on cramster edited my firstcode but then i try manipulating the new code and i still get acompile error message : \documents\visual studio 2008\projects\movie\movie\movie.cpp(46) : error c2679: binary '< < ' : no operator found which takes aright-hand operand of type 'std: : string' (or there is no acceptableconversion)c: \program files (x86)\microsoft visual studio9.0\vc\include\ostream(653): could be'std: : basic_ostream< _elem,_traits> & std: : operator< < > (std: : basic_ostream< _elem,_traits> & ,const char *)w
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
You know the right answer?
Phone numbers and pin codes can be easier to remember when you find words * that spell out the numbe...
Questions
question
Mathematics, 28.01.2020 07:31
question
Mathematics, 28.01.2020 07:31
question
Mathematics, 28.01.2020 07:31
question
Mathematics, 28.01.2020 07:31
Questions on the website: 13722363