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
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?
|