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, 21.06.2019 19:40
Write the quartstogallons java class that declares a named constant to hold the number of quarts in a gallon (4). also declare a variable to represent the number of quarts needed for a painting job, and assign an appropriate value—for example, 18. compute and display the number of gallons and quarts needed for the job. display explanatory text with the values, for example:
Answers: 2
question
Computers and Technology, 22.06.2019 02:00
The word ‘play’ comes with many different interpretations and a variety of definitions. discuss some of the various meanings tied to the word play. why is the concept of play thought to be an important addition to the workplace? do some (brief) research online and give an example of how play in the workplace is being done right.
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
Discuss the ways in which electronic information associated with payments is addressed in terms of security. include encryption, secure sockets layers, and secure electronic transactions in your discussion. are there any other ways that consumers and businesses can keep their payment information secure in an electronic commerce environment? do you feel that your information is safe when conducting electronic business? why or why not?
Answers: 1
question
Computers and Technology, 23.06.2019 13:50
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
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, 15.01.2021 19:00
question
Mathematics, 15.01.2021 19:00
question
Mathematics, 15.01.2021 19:00
question
History, 15.01.2021 19:00
Questions on the website: 13722363