New java student, question about algorithm, please help :)

Hey everyone!

So i just got out of my first java programming class, and i've got my first homework assignment.

I just want to know if my logic is heading in the right direction, maybe get some tips, any help would be greatly appreciated.

heres my problem.

**i need to write an algorithm for a program that can do the following**

names and testscores need to be entered

calculate average test score

determine and print names of all students who are below average

determine high score

print names of students who are = to high score

so far ive worked out that i need to

ask user to input name, and testscore-input name -input testscore

i need to store name and testscore-?

i need to create a total variable to store a running average-

testaverage=testaverage +testscore x total

i need to ask for a new name, and if yes, i need to input the name and new score.

i need to compare that score with whats stored in "testscore" variable

then i need to out 2 lists

below average

and

high score[s]

I am sooo confused on where to start, or how to loop to create new variables... basically im just confused. any help would be great appreciated!!!!