Difference: Lab10 (33 vs. 34)

Revision 342018-05-01 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Final Project - Shakespeare

Line: 60 to 60
 
  1. (1%) Add support for a second author or set of works. The second file must be at least 1Mb, and you will need to format it appropriately.*
  2. (2%) Add support for 5 or more additional books, and start with a menu listing the options, and allowing the user to select the works, then on to the other operations.*
  3. (1%) Add support more two or more adjacent words, such as "Lady MacBeth " or "to be or not to be".
Changed:
<
<
  1. (2%) Add support to search for two or more words, not necessarily adjacent, in the same line. For example, find paragraphs that incude the words "King", "Rosencrantz", and "Guildenstern".
>
>
  1. (2%) Add support to search for two or more words, not necessarily adjacent, in the same line. For example, find paragraphs that include the words "King", "Rosencrantz", and "Guildenstern".
 
  1. (1%) Add support to search for words within some specified numbers of word apart. E.g. search for lines with "King" and "Rosencrantz" with less then 3 words between (either order).
  2. (2%) Add Stemming (see instructor if you wish to try this)
Changed:
<
<
  1. You propose your own!!

>
>
  1. You propose your own!!

  * You make get additional books here.

The Book Class definition

Line: 84 to 84
  void setTitle(string aTitle); // Set the title of this book string getTitle(); // Get the title int countMatches(string word); // Return the number of time word appears in a Book
Added:
>
>
int size(); // Number of lines in book;
  void addLine(string line); // add a line to the book; void clear(); // Clear the contents and title of book void startSearch(string word); // Start a search for getNextMatch
Line: 233 to 234
  Prince. This oily rascal is known as well as Paul's. Go call him whoreson, impudent, emboss'd rascal, if there were anything in
Changed:
<
<
To display the paragraphs containing rascal enter the number of the book, or 0 to search for another word: 30
>
>
To display the lines containing rascal enter the number of the book, or 0 to search for another word: 30
  I bade the rascal knock upon your gate, While she did call me rascal fiddler And bring along these rascal knaves with thee? What dogs are these? Where is the rascal cook?
Changed:
<
<
To display the paragraphs containing rascal enter the number of the book, or 0 to search for another word: 29
>
>
To display the lines containing rascal enter the number of the book, or 0 to search for another word: 29
 
Changed:
<
<
To display the paragraphs containing rascal enter the number of the book, or 0 to search for another word: 0
>
>
To display the lines containing rascal enter the number of the book, or 0 to search for another word: 0
 Enter a word to search for (* to end):brain 1. THE SONNETS Matches: 5 2. ALLS WELL THAT ENDS WELL Matches: 0
Line: 281 to 282
 36. THE TWO GENTLEMEN OF VERONA Matches: 0 37. THE WINTER'S TALE Matches: 2 38. A LOVER'S COMPLAINT Matches: 0
Changed:
<
<
To display the paragraphs containing brain enter the number of the book, or 0 to search for another word: 19
>
>
To display the lines containing brain enter the number of the book, or 0 to search for another word: 19
  That hath a mint of phrases in his brain; Other slow arts entirely keep the brain; Lives not alone immured in the brain, To weed this wormwood from your fruitful brain,
Changed:
<
<
To display the paragraphs containing brain enter the number of the book, or 0 to search for another word: 2
>
>
To display the lines containing brain enter the number of the book, or 0 to search for another word: 2
 
Changed:
<
<
To display the paragraphs containing brain enter the number of the book, or 0 to search for another word: 8
>
>
To display the lines containing brain enter the number of the book, or 0 to search for another word: 8
  Without more motive, into every brain Within the book and volume of my brain, And I do think- or else this brain of mine
Line: 297 to 298
  Queen. Sleep rock thy brain, Queen. This is the very coinage of your brain.
Changed:
<
<
To display the paragraphs containing brain enter the number of the book, or 0 to search for another word: 0
>
>
To display the lines containing brain enter the number of the book, or 0 to search for another word: 0
 Enter a word to search for (* to end):*

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback