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