CS 1713 Introduction to Computer Science, Fall 2007 Project 3 Comments

  1. Use appropriate names for identifiers.
  2. A method that prints should have the "print" as part of its name.
  3. A method that does not print should not have "print" as part of its name.
  4. When calculating averages check that the count is not 0.
  5. Do not return the menu from the Restaurant class.
  6. You should not define compareTo backwards just so you can sort and print in the right order.
  7. In printDiscountRestaurants, calculate the average once before starting the loop.
  8. If returning an object that is not found, return null.
Here are some solutions:
Entree
Restaurant
DiningIn
TakeOut
Franchise
FranchiseMain
output