Order the answer to: Intro to Java. code in Java as in beginner Java. To make telephone numbers easier to remember

Academic Help net programming Order the answer to: Intro to Java. code in Java as in beginner Java. To make telephone numbers easier to remember

net programming

Order the answer to: Intro to Java. code in Java as in beginner Java. To make telephone numbers easier to remember

Question Intro to Java. code in Java as in beginner Java.
To make telephone numbers easier to remember, some companies useletters to show their telephone number.
For example, the telephone number 438-5626 can be shown asGET-LOAN. In some cases, to make a telephone number meaningful,companies might use more than seven letters. For example,225-5466can be displayed as CALL-HOME, which uses eight letters.
Write a program that prompts the user to enter a telephonenumber expressed in letters and outputs the corresponding telephonenumber in digits. If the user enters more than eight letters, thenprocess only the first seven letters. Also, output the – (hyphen)after the third digit. Allow the user to use uppercase andlowercase letters, as well as spaces between words. Moreover, yourprogram should process as many telephone numbers as the userwants.
(Hint: You can read the entered telephone number as a string andthen use the charAt method of the class String to extract eachcharacter. For example, if str refers to a string, then theexpression str.charAt(i) returns the character at the ith position.Recall that in a string, the position of the first character is0.)
Always ask the user if another set of values will beentered.

Attached

Subject net programming
Ready to try a high quality writing service? Get a discount here