Some Comments about HW3
(1) Some of you are still sorting the complicated way i.e. you first sort by
author and then for every author, you separately sort by title. There is a
much neater and easier way to do this sort. You should see the sample
solutions for HW1 and HW2 . The sample solutions are put
up on the web for you to have a look at them. And you should make it a point
to see the sample solutions. There is a great deal to be learnt by just
looking at them.
(2) Unnecessarily making functions public. Many of you have written helper
functions (like swap) for sorting. These functions are never going to be
called from outside the class. So, there is no reason why you should make them
public.
(3) Stick to the output specifications (no matter how bad you think they are).
When you go out into the real world, the output of your program might be input
to somebody else's program. So, once you mutually decide to stick to a
particular format for the output of the program, you better stick to it.