Hey how's it hanging? I'm a student at PSU and I don't molest children. Maybe you can help me finish my code - it implements pretty much everything I need to know for my final tomorrow so help is much appreciated!

http://www.mediafire.com/?x5and7k92cs0wa4
There a link to what I've done so far, and if you're sketched about downloading it go ahead and scan a million times and know that its just a cpp filewhich idk if you can even get viruses on those? Anyway check it out - the one problem I have currently is that the last function

void AverageTotal (Book index[],int s,double avg,double sum)

{

int i;

for (i=0; i<s; i++)

{

sum = sum + index[i].cost;

}

avg = sum / i+1;

}

That is designed to find avg and total of the books is not returning anything but 0. Maybe you can find out why?!

Anyway, thanks for your time and potential help.

Good day to youuzzz