8 HOURS DELIVERY: PLAGIARISM FREE AND QUALITY WORK GUARANTEED.

Assignment 8 Directions Phone numbers and PIN codes can be easier to remember wh

Assignment 8 Directions
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.
Write a recursive method that given a number, yields all possible spellings (which may or may
not be real words).
Please use the file, PinWordEnumerator.java included as a starting point.
Possible testing values are:
5282
26678837
7764726
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.
}

}