Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++ on Assignment due Friday. 270ct2017 Problem Statement: Convert ASCII text leters into valid telephone numbers Method: Read a seven-letter phrase and convert it

In C++ image text in transcribed
image text in transcribed
on Assignment due Friday. 270ct2017 Problem Statement: Convert ASCII text leters into valid telephone numbers Method: Read a seven-letter phrase and convert it to a valid phone number using the correspondence on a standard (land-line) telephone dial, as follows: ABC DEF GHI JKL MNO PQRS 7 TUV WXYZ 9 2 For example, the letters GET LOAN, can be converted to the phone number 438- 5626. In some cases, to make a telephone number more meaningful, companies might use more than seven letters. For example the letters CALL HOME can converted to the number 225-5466, using only the first seven letters (excluding blanks). be Variables phrase number nextChar digit digitCount blank string string character character integer character (named constant) PseudoCode Display message to user requesting seven or more letters Read the letters and store into phrase Store blank into nextChar Repeat while nextChar is not equal to end-of-line character into digitCoun &store into nextChar Get next character from user If nextChar is a blank Go to the end of the while-l00p Add 1 to digitCount ar to digit and store into digit

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

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions

Question

Discuss how innovation drives change in an organisation.

Answered: 1 week ago

Question

5. Arranging for the training facility and room.

Answered: 1 week ago

Question

1. Discuss the five types of learner outcomes.

Answered: 1 week ago