CSC 270 - Survey of Programming Languages

Assignment #11 - Replacing "is" with "was ".

Due Monday, November 13, 2017

Using the string methods that we have learned so far, write a program that will allow the user to type in line of text until the user types in the phrase "The end" on a line by itself. The program will replace every occurrence of "is" with the string "was" and count the number of changes made.

Use the string class. You can find them describes in C++ Lecture #2.

[Back to the Assignments List]