PDA

View Full Version : Bubble sort and data structure


imported_kimberly
11-20-2003, 09:48 AM
Hi eveyone,
can someone please take a look at my project and show me what i am doing wrong it is driving me up the wall. The tasks that the program should perform are as follows:

1. The program should input the names and marks (which it does) all scores should be entered between 0 and 1000 (not quite sure how to do this)

2. Calculate an average mark (which it does'nt)

3. Sort the names and marks of the team using a bubble sort algorithm (not sure how to do this)

I look forward to your relply,
kind regards
Kimberly.

imported_kimberly
11-20-2003, 09:55 AM
Sorry guys,
I have attached wron file, here is the file that relates to the previous post.
Regards
Kimberly

Latem
11-21-2003, 09:40 PM
fixed. your for loop structure was wrong.

A really good book for data structures and algorithms is
"Data Structures & Algorithms in Java 2nd Ed" by Robert Lafore.
I know its java, but really algorithms and data stractures are the same for any language. It has helped me a lot.

DNAunion2000
11-22-2003, 12:04 AM
Latem: A really good book for data structures and algorithms is
"Data Structures & Algorithms in Java 2nd Ed" by Robert Lafore.
I know its java, but really algorithms and data stractures are the same for any language. It has helped me a lot.

A good C++ book on the topic is "C++ An Introduction to Data Structures" by Larry Nyhoff (Pearson Education).


*********************
Ooops, if I had realized this wasn't the C++ thread I wouldn't have even replied.