Program for search the telephone number

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

To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, using letters, the telephone number 438-5626 can be shown as GET LOAN. In some cases, to make a telephone number meaningful, companies must use more than seven letters. For example, 225-5466 can be displayed as CALL HOME, which uses eight letters.

Write a program that prompts the user to enter a telephone number expressed in letters 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 both uppercase and lowercase letters as well as spaces between words.

Reference no: EM13856418

Questions Cloud

Present value analysis : James Hardy recently rejected a $20,000,000, five-year contract with the Vancouver Seals. The contract offer called for an immediate signing bonus of $7,500,000 and annual payments of $2,500,000. To sweeten the deal, the president of player..
Write an application to simulate distributing furniture : Write an application to simulate distributing furniture from Whole sale center to different stores in Java programin
What role social media plays in organisations decision : What role social media plays in organisations decision making?
Create journal entry to account for transportation costs : May 1, 2012--Joe purchased flour for his doughnut business and put the total on his account at Flour Mill, Inc. The cost of the flour is $620, plus shipping of $60. Create the journal entry to account for transportation costs.
Program for search the telephone number : To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, using letters, the telephone number 438-5626 can be shown as GET LOAN.
Explain challenges that might impact these goals : Explain 2-3 short-term goals (1-4 years) for your organization. Explain challenges that might impact these goals. Include how the organization might overcome these challenges
Calculate the payback period and net present value : The tax rate is 30%, and the cost of capital is 14%. Calculate the payback period and Net Present Value followed by your recommendations.
Why did it take so long for a stable democratic regime : Why did it take so long for a stable democratic regime to take hold in France - How did de Gaulle's changes to the country's institution and social, political, and economic processes contribute to the creation of an effective industrial state?
Smoking creates negative consumption externality : Smoking creates negative consumption externality as the social cost of smoking is much higher than its private cost. Prop 86 of the Nov 7, 2006 election proposes to impose an additional tax of $2.60 per pack of cigarette. Does this tax increase the s..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Problem on c++ tools

When working in teams (at most two students per team), send one solution file per team.

  Prepare a businesspartner class that contains a company

prepare a businesspartner class that contains a company name first name and a telephone number. prepare a contacts

  A text file students.txt contains student records

A text file students.txt contains student records (name, date of birth, and GPA). Write a program that reads student records from students.txt and creates an array of student structures

  Two types of constructors

Explain what constructors do and when they are executed. Explain the two types of constructors. Provide an example class that includes both types of constructor functions and demonstrate how an object would be instantiated using both types of constru..

  Write a function named short_path

Write a function named 'short_path' which has two input parameters {M, N} and one output parameter T.

  Write a class with the following static methods

Wordcount: This method should accept a reference to a String object as an argument and return the number of words contained in the object.

  Write the code that will display only even or odd numbered

Write the code that will display only the even or odd numbered elements within the array. The output should appear as follows: PRINTING CONTENTS OF ARRAY USING THE MOD Option

  Write the class declaration for a class named complex

Write the class declaration for a class named Complex using the class diagram

  Write a menu-driven c program

Write a menu-driven C program with appropriate functions that allows the user to fill an array of 50 integers with random numbers on the range 1...999, inclusive, sort it, and then find search it to determine if a given random number was generated..

  Compare and contrast the mode operators ios

Compare and contrast the mode operators ios::in, ios::app, and ios::out. Provide a C++ code segment that illustrates the use of these mode operators.

  Write a program in c that arranges and prints out

When playing poker and other card games (standard 52 cards, excluding the jokers), it is usual to arrange a hand to reflect its values. Write a program in C that arranges and prints out a random hand of ten cards in sorted order by pips values.

  Write the class definition for a class called complex

. Write the class definition for a class called complex.

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