Enter a telephone number expressed in letters

Assignment Help C/C++ Programming
Reference no: EM132432167

To make telephone numbers easier to remember, some companies use digits and letters (or only letters) to show their telephone number. In some cases, to make a telephone number meaningful, companies might use more than seven digits and letters. Here are some examples:

Phone Number in Display Note Actual Phone Number

Get Loan - 438-5626

Call Home More than 7 digits 255-5466

111 GOLD - 111-4653

Glass4u - 452-7748

Compose a program that prompts the user to enter a telephone number expressed in letters (or digits and letters) and outputs the corresponding telephone number in digits. If the user enters more than seven characters, then process only the first seven valid digits. Also output a - (hyphen) after the third digit. Allow the user to use digits, both uppercase and lowercase letters, and spaces between words.

If a number contains invalid letters such as a number GOT $$99, your program should report and terminate the processing of that phone number (do not terminate the whole program) and ask for another number. Your program should process as many telephone numbers as the user wants. You may use any valid approach to allow multiple sessions until user chooses to stop, such as CTRL+Z, enter y/n, enter q and so on. Whatever approach you use, provide proper prompt message(s) to users so they know how to use your program.

Reference no: EM132432167

Questions Cloud

Information about the genres of music customers : Information about the genres of music customers have purchased in the past and would offer those discounts on new releases in those genres.
How can you improve the efficiency of a nested condition : How can you improve the efficiency of a nested condition. Discuss why it is important to use meaningful names for identifiers.
What is the significance of the pie : Differentiate between lines of decent and residence. Why is it important to examine them? 3. What do you understand by the concept of cultural capital?
Prepare a statement of comprehensive income : An unrealized loss of $76,000 on available-for-sale securities. Prepare a statement of comprehensive income, beginning with income from continuing operations
Enter a telephone number expressed in letters : Compose a program that prompts the user to enter a telephone number expressed in letters (or digits and letters) and outputs the corresponding telephone number
Role of a parameterized type in function templates : What is the role of a parameterized type in function templates? May I have an example that illustrates specifying a parameterized type for a function template.
Soc 3362 - sociology of religion in india assignment : SOC 3362 - SOCIOLOGY OF RELIGION IN INDIA Assignment help and solutions:- Discuss how religious conversions can impact the social fabric of Indian society
Prepare a horizontal analysis of the balance sheet data : Prepare a horizontal analysis of the balance sheet data for Nike, using 2019 as a base. (Show the amount of increase or decrease as well.)
Implement the euclid algorithm in c : Implement the Euclid algorithm in C++ (or Java). After that, add the code to display the number of modulus operation(s) for the numbers m and n in the ranges

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd