Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Letter to Number Converter: Create a program that reads a phone number as letters from a variable and converts it to numbers e.g. GET-LOAN =
Letter to Number Converter:
Create a program that reads a phone number as letters from a variable and converts it to numbers e.g. GET-LOAN = 438-5626 When the company uses more than 7 letters, it should convert it to 7 digits e.g. CALL-HOME = 225-5466 The resulting converted number should include the dash to separate the three digits from the four digits Hint: Use the String object charAt method to read the variable that is storing the phone number as letters.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started