Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

ALPHABETIC TELEPHONE NUMERIC TRANSLATOR Many companies use telephone numbers lik

ID: 3668615 • Letter: A

Question

ALPHABETIC TELEPHONE NUMERIC TRANSLATOR

Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember. On the standard telephone, the alphabetic letters are mapped to numbers in the following fashion:

A, B, and C = 2

D, E, and F = 3

G, H, and I = 4

J, K, and L = 5

M, N, and O = 6

P, Q, R, and S = 7

T, U, V = 8

W, X, Y, and Z = 9

Ask the user for a phone number, in the form like 555-GET-FOOD, where the last seven digits are represented by letters that spell short words

Verify that the string is 12 characters long, and that there are hyphens in the 4th and 8th positions

Translate the letters to their numeric equivalents

You should check for both lower-case and upper-case letters

Display the telephone number, with all letters translated to their correct numeric digits, with text, such as, “The translated phone number is: 555-438-3663

Explanation / Answer

******* Implemented above scenario in JAVA platform*************

Main program

Create a collection to hold translated values

Output

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote