Question: A newString class having a pointer string variable reads a string and converts them to the 10 digit phone numbers according a phone key pad.

A newString class having a pointer string variable reads a string and converts them to the 10 digit phone numbers according a phone key pad.

Use the following strings:

1800BANCORP

1800USBANK

1800MYKOHL

Use input and output overloaded functions of the class and overload array index operator to convert to the 10 digit number of the input string. Also write appropriate constructor, assignment operator, copy constructor as required. Write a C++ program for the above problem and write algorithm in words.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!