Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a c++ program that reads the letter codes of a telephone number pad and converts them into their corresponding number patterns. 2. a.

1. Write a c++ program that reads the letter codes of a telephone number pad and converts them into their corresponding number patterns. 2. a. One acceptable form of output: Sample input: Sample Output: 800-MATTRESS 800-628-8737 (leave off the last S) 800-mattress 800-628-8737 (leave off the last S) b. Another acceptable form of output: Sample input: Sample Output: 8 8 0 0 0 0 M 6 A 2 T 8 T 8 R 7 E 3 S 7 3. The letters A to Z and a to z should print the corresponding telephone digit. 4. This program should use two levels of loops. a. One loop should prompt the user to ask them if they wish to convert a telephone letter pattern. The user should be prompted when the program first begins execution and after each completed execution. (1) If they do wish to convert a telephone letter pattern, the program should execute again. (2) If they do not wish to convert a telephone letter pattern, the program should terminate (3) Valid values that the user can enter as to whether they wish to execute the program are: Y or y or N or n . (a) All other responses should error out and user the should be requested to enter a valid response. b. The other loop should convert a 10 character letter pattern into the corresponding number pattern. (1) The user should be prompted to enter the 10 letter sequence. (2) Only the first 10 characters should be able to be entered and converted. c. The valid patterns for letter to number conversion of the telephone are: 1 2: ABC 3: DEF 4: GHI 5: JKL 6: MNO 7: PQRS 8: TUV 9: WXYZ * 0 # 5. A counter should keep track of how many telephone button conversions have been processed on and printed on the report. 6. A solid line of separators such as the **** or #### should be placed between each telephone button conversion done. 7. Place a good descriptive heading at the top of the report below the required first several output lines indicated at the top of this document. 8. At least three separate conversions should be processed. D. Save the program with the name: Lab4tele.cpp E. Test Data: Test Case Number Phrase Output 1 800-Compute ? 2 808-Science ? 3 888-Program ? F. For this program, hand in: 1. A copy of the source code for the program. 2. A copy of the screen print for the output for the program run

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

8. Satyam Computer Services Limited

Answered: 1 week ago

Question

Azure Analytics is a suite made up of which three tools?

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago