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, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
question
Computers and Technology, 23.06.2019 07:50
Most shops require the technician to enter a starting and ending time on the repair order to track the actual time the vehicle was in the shop and closed out by the office. this time is referred to as _ time ? a. comeback b. ro c. cycle d. lead
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Spoons are designed to be used for: spring hammering. applying body filler. identifying high and low spots. sanding highly formed areas.
Answers: 3
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
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, 23.03.2021 21:10