CS 141 Fall 2012 -- First midterm review

  1. Write a complete class (with accessors and toString()), named:
    1. FaceBookPerson: with a name of type String, a number of friends of type int, and a photo of type Photo
    2. Book; a Book has a title, author, and number of pages
    3. Course; a Course has a department, and a number (e.g. CS 141)
    4. Taxpayer; a Taxpayer has a name, an address, and an amount owed (in whole dollars)
    5. Student; a Student has a name, an id number, and number of credits completed
  2. Review Questions and Programming Exercises from: Chapter 2.
  3. Review Questions and Programming Exercises from: Chapter 3.
  4. Review Questions and Programming Exercises from: Chapter 4.

Old midterms (with answers!) -- perhaps looking at the 2010 exam would be the best plan...

2006 2007 2010