
-----------------------------------
.:hacker:.
Wed Apr 20, 2005 5:55 pm

Arrays in a marks program
-----------------------------------
I've been working on a small marks program with arrays recently. It supposed to let the user enter ten marks, and then give the average, minimum mark, and maximum mark. The problem is, I don't know how. This kind of stuff always stumps me, for some reason. Can anybody help with some suggestions? (incomplete code is below)

public class ArrayPractice 
{ 
   int [] marks = new int[10]; 

   int i; 
   int intMarks; 
   String Marks; 
   int intAverage; 
   int intMinimum; 
   int intMaximum; 

   public static void main (String [] args) 
   { 
       for (int i=0; i