RequirementGrading CommentsPointsScore
Easy to use user interface 5 5
Functional decomposition: Program should be factored into functions to reduce complexity.
"main()" should not be one be function, but should be divided into supporting functions
(Like "readBooks(bookVector, filestream)".
10 10
Class Design: Classes have appropriate methods added as needed, new classes well designed 10 10
Class Implementation : Logic is correctly implements in the each class methods 20 20
C++ code includes comments, with project information at top, pre and post conditions
for each functions and other comments as needed.
5 5
The C++ code has good formatting, indentation, and organization. 5 5
Good variable and function names, appropriate use of constants rather then literal numbers. 5 5
Runs: Run of game works correct (Run for given test cases) 40 40
Extra Credit
Total 100 100

Solution

Number of books: 38
1. THE SONNETS
2. ALLS WELL THAT ENDS WELL
3. THE TRAGEDY OF ANTONY AND CLEOPATRA
4. AS YOU LIKE IT
5. THE COMEDY OF ERRORS
6. THE TRAGEDY OF CORIOLANUS
7. CYMBELINE
8. THE TRAGEDY OF HAMLET, PRINCE OF DENMARK
9. THE FIRST PART OF KING HENRY THE FOURTH
10. SECOND PART OF KING HENRY IV
11. THE LIFE OF KING HENRY THE FIFTH
12. THE FIRST PART OF HENRY THE SIXTH
13. THE SECOND PART OF KING HENRY THE SIXTH
14. THE THIRD PART OF KING HENRY THE SIXTH
15. KING HENRY THE EIGHTH
16. KING JOHN
17. THE TRAGEDY OF JULIUS CAESAR
18. THE TRAGEDY OF KING LEAR
19. LOVE'S LABOUR'S LOST
20. THE TRAGEDY OF MACBETH
21. MEASURE FOR MEASURE
22. THE MERCHANT OF VENICE
23. THE MERRY WIVES OF WINDSOR
24. A MIDSUMMER NIGHT'S DREAM
25. MUCH ADO ABOUT NOTHING
26. THE TRAGEDY OF OTHELLO, MOOR OF VENICE
27. KING RICHARD THE SECOND
28. KING RICHARD III
29. THE TRAGEDY OF ROMEO AND JULIET
30. THE TAMING OF THE SHREW
31. THE TEMPEST
32. THE LIFE OF TIMON OF ATHENS
33. THE TRAGEDY OF TITUS ANDRONICUS
34. THE HISTORY OF TROILUS AND CRESSIDA
35. TWELFTH NIGHT; OR, WHAT YOU WILL
36. THE TWO GENTLEMEN OF VERONA
37. THE WINTER'S TALE
38. A LOVER'S COMPLAINT
Enter a word to search for (* to end):kenyon
1. THE SONNETS Matches: 0
2. ALLS WELL THAT ENDS WELL Matches: 0
3. THE TRAGEDY OF ANTONY AND CLEOPATRA Matches: 0
4. AS YOU LIKE IT Matches: 0
5. THE COMEDY OF ERRORS Matches: 0
6. THE TRAGEDY OF CORIOLANUS Matches: 0
7. CYMBELINE Matches: 0
8. THE TRAGEDY OF HAMLET, PRINCE OF DENMARK Matches: 0
9. THE FIRST PART OF KING HENRY THE FOURTH Matches: 0
10. SECOND PART OF KING HENRY IV Matches: 0
11. THE LIFE OF KING HENRY THE FIFTH Matches: 0
12. THE FIRST PART OF HENRY THE SIXTH Matches: 0
13. THE SECOND PART OF KING HENRY THE SIXTH Matches: 0
14. THE THIRD PART OF KING HENRY THE SIXTH Matches: 0
15. KING HENRY THE EIGHTH Matches: 0
16. KING JOHN Matches: 0
17. THE TRAGEDY OF JULIUS CAESAR Matches: 0
18. THE TRAGEDY OF KING LEAR Matches: 0
19. LOVE'S LABOUR'S LOST Matches: 0
20. THE TRAGEDY OF MACBETH Matches: 0
21. MEASURE FOR MEASURE Matches: 0
22. THE MERCHANT OF VENICE Matches: 0
23. THE MERRY WIVES OF WINDSOR Matches: 0
24. A MIDSUMMER NIGHT'S DREAM Matches: 0
25. MUCH ADO ABOUT NOTHING Matches: 0
26. THE TRAGEDY OF OTHELLO, MOOR OF VENICE Matches: 0
27. KING RICHARD THE SECOND Matches: 0
28. KING RICHARD III Matches: 0
29. THE TRAGEDY OF ROMEO AND JULIET Matches: 0
30. THE TAMING OF THE SHREW Matches: 0
31. THE TEMPEST Matches: 0
32. THE LIFE OF TIMON OF ATHENS Matches: 0
33. THE TRAGEDY OF TITUS ANDRONICUS Matches: 0
34. THE HISTORY OF TROILUS AND CRESSIDA Matches: 0
35. TWELFTH NIGHT; OR, WHAT YOU WILL Matches: 0
36. THE TWO GENTLEMEN OF VERONA Matches: 0
37. THE WINTER'S TALE Matches: 0
38. A LOVER'S COMPLAINT Matches: 0
To display the paragraphs containing kenyon enter the number of the book, or 0 to search for another word: 0
Enter a word to search for (* to end):college
1. THE SONNETS Matches: 0
2. ALLS WELL THAT ENDS WELL Matches: 6
3. THE TRAGEDY OF ANTONY AND CLEOPATRA Matches: 2
4. AS YOU LIKE IT Matches: 5
5. THE COMEDY OF ERRORS Matches: 6
6. THE TRAGEDY OF CORIOLANUS Matches: 4
7. CYMBELINE Matches: 4
8. THE TRAGEDY OF HAMLET, PRINCE OF DENMARK Matches: 9
9. THE FIRST PART OF KING HENRY THE FOURTH Matches: 5
10. SECOND PART OF KING HENRY IV Matches: 5
11. THE LIFE OF KING HENRY THE FIFTH Matches: 6
12. THE FIRST PART OF HENRY THE SIXTH Matches: 5
13. THE SECOND PART OF KING HENRY THE SIXTH Matches: 6
14. THE THIRD PART OF KING HENRY THE SIXTH Matches: 6
15. KING HENRY THE EIGHTH Matches: 5
16. KING JOHN Matches: 5
17. THE TRAGEDY OF JULIUS CAESAR Matches: 5
18. THE TRAGEDY OF KING LEAR Matches: 5
19. LOVE'S LABOUR'S LOST Matches: 5
20. THE TRAGEDY OF MACBETH Matches: 5
21. MEASURE FOR MEASURE Matches: 4
22. THE MERCHANT OF VENICE Matches: 3
23. THE MERRY WIVES OF WINDSOR Matches: 7
24. A MIDSUMMER NIGHT'S DREAM Matches: 5
25. MUCH ADO ABOUT NOTHING Matches: 6
26. THE TRAGEDY OF OTHELLO, MOOR OF VENICE Matches: 5
27. KING RICHARD THE SECOND Matches: 5
28. KING RICHARD III Matches: 5
29. THE TRAGEDY OF ROMEO AND JULIET Matches: 5
30. THE TAMING OF THE SHREW Matches: 5
31. THE TEMPEST Matches: 5
32. THE LIFE OF TIMON OF ATHENS Matches: 5
33. THE TRAGEDY OF TITUS ANDRONICUS Matches: 5
34. THE HISTORY OF TROILUS AND CRESSIDA Matches: 5
35. TWELFTH NIGHT; OR, WHAT YOU WILL Matches: 5
36. THE TWO GENTLEMEN OF VERONA Matches: 5
37. THE WINTER'S TALE Matches: 5
38. A LOVER'S COMPLAINT Matches: 0
To display the paragraphs containing college enter the number of the book, or 0 to search for another word: 0
Enter a word to search for (* to end):king
1. THE SONNETS Matches: 2
2. ALLS WELL THAT ENDS WELL Matches: 124
3. THE TRAGEDY OF ANTONY AND CLEOPATRA Matches: 6
4. AS YOU LIKE IT Matches: 1
5. THE COMEDY OF ERRORS Matches: 0
6. THE TRAGEDY OF CORIOLANUS Matches: 1
7. CYMBELINE Matches: 35
8. THE TRAGEDY OF HAMLET, PRINCE OF DENMARK Matches: 194
9. THE FIRST PART OF KING HENRY THE FOURTH Matches: 110
10. SECOND PART OF KING HENRY IV Matches: 109
11. THE LIFE OF KING HENRY THE FIFTH Matches: 282
12. THE FIRST PART OF HENRY THE SIXTH Matches: 107
13. THE SECOND PART OF KING HENRY THE SIXTH Matches: 216
14. THE THIRD PART OF KING HENRY THE SIXTH Matches: 343
15. KING HENRY THE EIGHTH Matches: 198
16. KING JOHN Matches: 225
17. THE TRAGEDY OF JULIUS CAESAR Matches: 4
18. THE TRAGEDY OF KING LEAR Matches: 70
19. LOVE'S LABOUR'S LOST Matches: 155
20. THE TRAGEDY OF MACBETH Matches: 33
21. MEASURE FOR MEASURE Matches: 5
22. THE MERCHANT OF VENICE Matches: 3
23. THE MERRY WIVES OF WINDSOR Matches: 1
24. A MIDSUMMER NIGHT'S DREAM Matches: 6
25. MUCH ADO ABOUT NOTHING Matches: 1
26. THE TRAGEDY OF OTHELLO, MOOR OF VENICE Matches: 1
27. KING RICHARD THE SECOND Matches: 251
28. KING RICHARD III Matches: 257
29. THE TRAGEDY OF ROMEO AND JULIET Matches: 2
30. THE TAMING OF THE SHREW Matches: 1
31. THE TEMPEST Matches: 33
32. THE LIFE OF TIMON OF ATHENS Matches: 0
33. THE TRAGEDY OF TITUS ANDRONICUS Matches: 12
34. THE HISTORY OF TROILUS AND CRESSIDA Matches: 7
35. TWELFTH NIGHT; OR, WHAT YOU WILL Matches: 3
36. THE TWO GENTLEMEN OF VERONA Matches: 3
37. THE WINTER'S TALE Matches: 51
38. A LOVER'S COMPLAINT Matches: 0
To display the paragraphs containing king enter the number of the book, or 0 to search for another word: 17
    Choose Caesar for their king.
    As easily as a king.
    Mean to establish Caesar as a king,
    The Tarquin drive, when he was call'd a king.

To display the paragraphs containing king enter the number of the book, or 0 to search for another word: 33
    Half of the number that King Priam had,
    O, if to fight for king and commonweal
    King and commander of our commonweal,
    And give the King this fatal-plotted scroll.
  BASSIANUS. The King my brother shall have notice of this.
    Good king, to be so mightily abused!
  AARON.  [Aside]  Now will I fetch the King to find them here,
  TAMORA. Where is my lord the King?
  TAMORA. Andronicus, I will entreat the King.
    And send it to the King: he for the same
  TAMORA. King, be thy thoughts imperious like thy name!
    When subtle Greeks surpris'd King Priam's Troy.

To display the paragraphs containing king enter the number of the book, or 0 to search for another word: 0
Enter a word to search for (* to end):ship
1. THE SONNETS Matches: 0
2. ALLS WELL THAT ENDS WELL Matches: 0
3. THE TRAGEDY OF ANTONY AND CLEOPATRA Matches: 3
4. AS YOU LIKE IT Matches: 0
5. THE COMEDY OF ERRORS Matches: 8
6. THE TRAGEDY OF CORIOLANUS Matches: 0
7. CYMBELINE Matches: 1
8. THE TRAGEDY OF HAMLET, PRINCE OF DENMARK Matches: 2
9. THE FIRST PART OF KING HENRY THE FOURTH Matches: 0
10. SECOND PART OF KING HENRY IV Matches: 0
11. THE LIFE OF KING HENRY THE FIFTH Matches: 1
12. THE FIRST PART OF HENRY THE SIXTH Matches: 1
13. THE SECOND PART OF KING HENRY THE SIXTH Matches: 2
14. THE THIRD PART OF KING HENRY THE SIXTH Matches: 1
15. KING HENRY THE EIGHTH Matches: 0
16. KING JOHN Matches: 0
17. THE TRAGEDY OF JULIUS CAESAR Matches: 0
18. THE TRAGEDY OF KING LEAR Matches: 0
19. LOVE'S LABOUR'S LOST Matches: 1
20. THE TRAGEDY OF MACBETH Matches: 0
21. MEASURE FOR MEASURE Matches: 0
22. THE MERCHANT OF VENICE Matches: 7
23. THE MERRY WIVES OF WINDSOR Matches: 0
24. A MIDSUMMER NIGHT'S DREAM Matches: 0
25. MUCH ADO ABOUT NOTHING Matches: 0
26. THE TRAGEDY OF OTHELLO, MOOR OF VENICE Matches: 4
27. KING RICHARD THE SECOND Matches: 0
28. KING RICHARD III Matches: 0
29. THE TRAGEDY OF ROMEO AND JULIET Matches: 0
30. THE TAMING OF THE SHREW Matches: 0
31. THE TEMPEST Matches: 13
32. THE LIFE OF TIMON OF ATHENS Matches: 0
33. THE TRAGEDY OF TITUS ANDRONICUS Matches: 0
34. THE HISTORY OF TROILUS AND CRESSIDA Matches: 0
35. TWELFTH NIGHT; OR, WHAT YOU WILL Matches: 1
36. THE TWO GENTLEMEN OF VERONA Matches: 2
37. THE WINTER'S TALE Matches: 4
38. A LOVER'S COMPLAINT Matches: 0
To display the paragraphs containing ship enter the number of the book, or 0 to search for another word: 8
    But we will ship him hence; and this vile deed
    boarded them. On the instant they got clear of our ship; so I

To display the paragraphs containing ship enter the number of the book, or 0 to search for another word: 37
  ANTIGONUS. Thou art perfect then our ship hath touch'd upon
    see 'em; now the ship boring the moon with her mainmast, and anon
    name was Antigonus, a nobleman! But to make an end of the ship-
    ship to purge melancholy and air himself; for, if thou be'st

To display the paragraphs containing ship enter the number of the book, or 0 to search for another word: 0
Enter a word to search for (* to end):love
1. THE SONNETS Matches: 161
2. ALLS WELL THAT ENDS WELL Matches: 60
3. THE TRAGEDY OF ANTONY AND CLEOPATRA Matches: 38
4. AS YOU LIKE IT Matches: 113
5. THE COMEDY OF ERRORS Matches: 19
6. THE TRAGEDY OF CORIOLANUS Matches: 28
7. CYMBELINE Matches: 28
8. THE TRAGEDY OF HAMLET, PRINCE OF DENMARK Matches: 66
9. THE FIRST PART OF KING HENRY THE FOURTH Matches: 28
10. SECOND PART OF KING HENRY IV Matches: 21
11. THE LIFE OF KING HENRY THE FIFTH Matches: 40
12. THE FIRST PART OF HENRY THE SIXTH Matches: 25
13. THE SECOND PART OF KING HENRY THE SIXTH Matches: 17
14. THE THIRD PART OF KING HENRY THE SIXTH Matches: 40
15. KING HENRY THE EIGHTH Matches: 23
16. KING JOHN Matches: 38
17. THE TRAGEDY OF JULIUS CAESAR Matches: 34
18. THE TRAGEDY OF KING LEAR Matches: 51
19. LOVE'S LABOUR'S LOST Matches: 98
20. THE TRAGEDY OF MACBETH Matches: 19
21. MEASURE FOR MEASURE Matches: 28
22. THE MERCHANT OF VENICE Matches: 57
23. THE MERRY WIVES OF WINDSOR Matches: 45
24. A MIDSUMMER NIGHT'S DREAM Matches: 103
25. MUCH ADO ABOUT NOTHING Matches: 87
26. THE TRAGEDY OF OTHELLO, MOOR OF VENICE Matches: 78
27. KING RICHARD THE SECOND Matches: 32
28. KING RICHARD III Matches: 64
29. THE TRAGEDY OF ROMEO AND JULIET Matches: 136
30. THE TAMING OF THE SHREW Matches: 61
31. THE TEMPEST Matches: 12
32. THE LIFE OF TIMON OF ATHENS Matches: 34
33. THE TRAGEDY OF TITUS ANDRONICUS Matches: 22
34. THE HISTORY OF TROILUS AND CRESSIDA Matches: 67
35. TWELFTH NIGHT; OR, WHAT YOU WILL Matches: 75
36. THE TWO GENTLEMEN OF VERONA Matches: 159
37. THE WINTER'S TALE Matches: 24
38. A LOVER'S COMPLAINT Matches: 9
To display the paragraphs containing love enter the number of the book, or 0 to search for another word: 5
  Whom whilst I laboured of a love to see,
LUCIANA. Ere I learn love, I'll practise to obey.
  Would that alone a love he would detain,
  As you love strokes, so jest with me again.
  Your sauciness will jest upon my love,
  For know, my love, as easy mayst thou fall
  Even in the spring of love, thy love-springs rot?
  Shall love, in building, grow so ruinous?
  Muffle your false love with some show of blindness;
  Being compact of credit, that you love us;
  Let Love, being light, be drowned if she sink.
ANTIPHOLUS OF SYRACUSE. As good to wink, sweet love, as look on night.
LUCIANA. Why call you me love? Call my sister so.
  Thee will I love, and with thee lead my life;
  Belike you thought our love would last too long,
LUCIANA. That love I begg'd for you he begg'd of me.
ADRIANA. With what persuasion did he tempt thy love?
  Stray'd his affection in unlawful love?
  Namely, some love that drew him oft from home.

To display the paragraphs containing love enter the number of the book, or 0 to search for another word: 38
  Love to myself, and to no love beside.
  Love lacked a dwelling and made him her place;
  For feasts of love I have been called unto,
  Love made them not; with acture they may be,
  To spend her living in eternal love.
  Religious love put out religion's eye.
  As compound love to physic your cold breast.
  O most potential love, vow, bond, nor space,

To display the paragraphs containing love enter the number of the book, or 0 to search for another word: 0
Enter a word to search for (* to end):*



This topic: SCMP118/Fall2016 > WebHome > Lab10 > SSSolution
Topic revision: r2 - 2018-05-13 - JimSkon
 
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