Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, the telephone number 4 3 8 -

To make telephone numbers easier to remember, some companies use letters to show
their telephone number. For example, the telephone number 438-5626 can be shown as
GET LOAN using letters. In some cases, to make a telephone number meaningful,
companies might use more than seven letters. For example, 225-5466 can be displayed
as CALL HOME, which uses eight letters. Write a C++ program that prompts the user to
enter a telephone number expressed in letters(Can be uppercase/lowercase or both) and
outputs the corresponding telephone number in digits. If the user enters more than seven
letters, then process only the first seven letters. Also, output the -(hyphen) after the third
digit. Allow the user to use uppercase and lowercase letters and spaces between words.
Moreover, your program should process as many telephone numbers as the user wants.

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

Step: 3

blur-text-image

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

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions

Question

Differentiate between a mission statement and a vision statement.

Answered: 1 week ago

Question

=+5 How does HRM relate to efforts to increase innovation?

Answered: 1 week ago