Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

What are the keys to effective self-leadership?

Answered: 1 week ago

Question

Evaluate 3x - x for x = -2 Answer:

Answered: 1 week ago

Question

explain what is meant by redundancy

Answered: 1 week ago