Question: Implement in C++ 2. (3 pts) Write a function to read in a file containing sentences. There are single digit numbers in these sentences, expressed

Implement in C++  Implement in C++ 2. (3 pts) Write a function to read
in a file containing sentences. There are single digit numbers in these

2. (3 pts) Write a function to read in a file containing sentences. There are single digit numbers in these sentences, expressed in numerals, such as 0, 1, 2, 3 etc. Replace these single digit numerals by spelling them out example, if you see "1", you should replace it by "one", and so forth. Write the output to the console and an output file. For testing purpose, please create an input file with the following text: . For The price of the cup is 4 dollars. But it's on sale today at 2 for 6 dollars. If you buy more, you can get 3 for 8 dollars

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 Databases Questions!