CSC 171 - Introduction to Structured Programming

Assignment #8 - An even less basic string program

Due Monday, October 20, 2023

Using the string operations, functions and 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 the word "is" with the word "was" and count the number of changes made. This will require you to replace the string "is " at the beginning of a line, the string " is" at the end of a line and " is " everywhere else on the line.

[Back to the Assignments List]