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

  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