Write a program that simulates the dial of a phone number

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

Write a program that simulates the dial of a phone number. The program will accept a phone number as input, and it will acknowledge the call by either writing an error message or the 8 digit phone number to the console window. The phone number may have either digits, letters, or both.

Here are the letters associated with each digit.

0 5 J K L
1 6 M N O
2 A B C 7 P Q R S
3 D E F 8 T U V
4 G H I 9 W X Y Z

A phone number never begins with a 0 or 555, so the program should flag an error if such a number is entered. A phone number always has a hyphen (-) in the 4th position. If a hyphen is in any other position, it is considered an invalid digit. If the phone number is valid, write the converted number to the output file.

The program should process any number of phone numbers until the user enters a Q.

Please refer to the attachment for sample input-output session with the program, and the pseudo code, using which the C++ code has to be written for this simulation.

Attachment:- Program pseudocode.docx

Reference no: EM13936829

Questions Cloud

Compute the initial investment cash outlay : Compute the initial investment cash outlay. This is the total cost of equipment purchase ($285,000), installation and shipping ($25,000), and change in net working capital
Why is dna evidence more useful as exclusionary evidence : Give the DNA sequence for the template strand that gives rise to the following sequence gel, prepared using the sanger method with a radioactive label at the 5' end of the primer.
Results of the query into an ms word file : What to Turn in: Document all of your SQL scripts by copying the script and the results of the query into an MS Word file. As with the previous assignment, please include a listing of the data in each table and the table fields (i.e., use the SELE..
Develop a consumer behaviour report : Students are required to develop a Consumer Behaviour Report to be submitted to the Managing Director of a Medium to High Involvement Brand/Product of your choice to outline the key issues facing the company in terms of consumer behavioural issues..
Write a program that simulates the dial of a phone number : Write a program that simulates the dial of a phone number. The program will accept a phone number as input, and it will acknowledge the call by either writing an error message or the 8 digit phone number to the console window. The phone number may..
List the stages of pcr and describe the function of each : How is PCR used to determine that a person is infected with a specific bacterium? Now that we have PCR, why would we use culture techniques?
Describe the company and product : 1. Describe the company and product? 2. You don't have to choose very luxury products? 3. Who sale it or use it in Afghanistan?
Makes use of information technologies and systems : Make contact with an organisation that makes use of information technologies and systems (but not University of Salford or The Manchester College).
Calculate the net benefit or cost to turun telelaitos : Calculate the net benefit or cost to Turun Telelaitos from implementing a JIT production system. What other non-financial and qualitative factors should Turun Telelaitos consider before deciding on whether it should implement a JIT system?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Selection and repetition concepts

Use Selection and Repetition Concepts for this problem. A parts inventory record contains the following fields:

  Testing a program based on varying

Testing a program based on varying input values without knowing what the code looks like is called _____.With _____ testing, you make sure that every instruction in the code is executed at least once.

  Build a traffic light system - microcontroller system

Build the whole system with 3 RAG units and three puffin crossing units and build a team to work on this mini-project, be careful in selecting your team member.

  Data from the file grocery.dat

Read the data from the file Grocery.dat and assign values to the 10  GroceryItem  objects. Next display these items to allow a customer to select grocery items from the list and indicate the quantity of that item he or she would like to order. When t..

  Show the items by zone or location within the store

There is other information. Some people shop on a budget so they need the price and the sale price. Use an array or vector to hold the list of items. The display should show the items by zone or location within the store. (Display the output by loc..

  Explain how to represent a lagged fibonacci generator

Explain how to represent a lagged Fibonacci generator using list abstract data types. What representation would be the most appropriate?

  Write another main function create three bank accounts

Write another main function - in this function create three bank accounts, then prompt the user to enter a bank account number, if the account number matches one on the three accounts then display the following menu otherwise allow the user to ent..

  Generate a main program which initializes

Generate a main program which initializes your data array to be sorted - be careful with your array index numbers. You can use a random number generator to generate entries for the array.

  Taskimplement class randomint using randomintcpp and

taskimplement class randomint using randomint.cpp and randomint.h.for the randomint class- the function call operator

  Calculate the integer square root by calculating

Calculate the integer square root by calculating

  Question 1 create an object oriented application with c

question 1 create an object oriented application with c that computes the area of a rectangle and the area and the

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