|
|
Program 8 - March 4String and File Processing AssignmentYou can think of this assignment as Pig Latin 201. Your program should read a text file containing English prose, in paragraphs separated by blank lines. There is no special marker for the end of the file, you will have to detect that yourself. Output is a text file containing pig latin. The rules to use for this version of pig latin are a bit more complicated than the earlier assignment:
Example - the second paragraph above in Pig Latin:Ouryay ogrampray ouldshay eadray away extay ilefay ontainingcay Englishway osepray, inway aragraphsway eparatedsay ybay ankblay ineslay. Erethay isway onay ecialspay arkermay orfay ethay endway of way ethay ilefay, ouyay illway avehay otay etectday atthay ourselfyay. Outputway isway away extay ilefay ontainingcay igpay atinlay. Ethey ulesray otay useway orfay isthay ersionvay ofway igpay atinlay areway away itbay oremay omplicatedcay anthay ethay earlierway assignmentway: RequirementsYour program should use the following features of C++ which we have just studied:
You may choose to write this program either with or without user-defined data types. |
|
Copyright © 2000 Charlie Poole. All rights reserved.
|