title: Calculating Sums and Averages of inputted numbers, and sorting numbers in Eclipse
body: <p>The Problem: Write a program that reads in five whole numbers from the user. The program will calculate and output</p>
  
  <p>the following statistics about the five numbers:</p>
  
  <p>• <code>The sum of all of the positive numbers (greater than zero).</code></p>
  
  <p>• <code>The sum of all of the non-positive numbers (less than or equal to zero).</code></p>
  
  <p>• <code>The sum of all five numbers.</code></p>
  
  <p>• <code>The average of all of the positive numbers (greater than zero).</code></p>
  
  <p>• <code>The average of all of the non-positive numbers (less than or equal to zero).</code></p>
  
  <p>• <code>The average of all five numbers.</code></p>
  
  <p>Here is what I have for my code: </p>
  
  <pre><code>package assignment_09_20_2018;
  
  import java.util.Scanner ; 
  
  public class LAB_Assignment_09_20_2018 {
  
      public LAB_Assignment_09_20_2018() {
          // TODO Auto-generated constructor stub
  
  
      public static void main(String[] args) {
          // TODO Auto-generated method stub
          int length; 
  
          Scanner input = new Scanner(System.in) ;
          //opens scanner
  
          System.out.println("Enter 5 numbers: ") ;
  
          length = input.nextInt() ; 
  
          Int[] numbers = new Int[length]
  
  
      }
  } 
  </code></pre>
  
  <p>someone in my class said to use arrays and for loops but i have no idea how to, please help</p>