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 15:00
Who is the first president to use social media as part of his campaign strategy
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
What is the term for water wave that is created by an underwater earthquake
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, 05.05.2020 18:12
question
Mathematics, 05.05.2020 18:12
question
Engineering, 05.05.2020 18:12
Questions on the website: 13722361