Please
UseAMeaningfulSubjectLine. And can you show us what you've done so far?
Let me help you a little bit. I see three sub tasks:
- read the user input.
- put that user input into some data structure; since the number is known an array may be good enough. You'll probably need a custom class for this, e.g. Student, with two fields: a
String name and a numeric (int, float, double, ...) score.
- find the student with the highest score inside that data structure. If it's an array or Collection than a simple loop would be the basis of this.