Originally Posted by
staykovmarin
On a quick glance:
Why do you have the commented out? Dont you want to iterate over the array of books?
Also when you have a problem, it helps to say exactly what your problem is. Saying its "wrong" does no one any good.
i try and do this and the program doesnt run properely and stops a the second entry,i want to do it so that it works out the average for all the books combined AND if for e.g. book2 has been entered twice work out an average for each book (book2 +book2/2) that has been entered, and print out what the highest rated book is, which in this case is book2, its not working out the average as a floating point or some reason, do you see what i mean and what i am trying to do?