Virginia Tech Computer Science Department
Tom Plunkett
thplunk2@vt.edu
Existing Software Program: Editing a File of Text
Textbook P.263, Display 5.7
Requirements
Overview: The C++ advertisement needs to be changed to generate increased revenues. We want to replace the old first sentence with a new sentence.
1) Two input files, cplusad.dat (the old output file, which we saved) and a new input file, fast_ad.dat.
2) fast_ad.dat: C++ is the fastest modern programming language.
3)new output file name: new_ad.dat
4)The old first sentence in the ad should not be present in the ad.
5) Correct output should read: "C++ is the fastest modern programming language. There is no language as versatile as C++, and C++ is fun to use."
6) Identify all functions that need to be changed, and what changes need to be made in each function.
Some Sample Answers from this Semester