Alright my teacher just ended up giving me the code. Lol. Here is the code, and mods you can put solved on the title.
import java.util.Scanner;
class Remainders {
public static void main(String args[])
{
Scanner scan = new Scanner(System.in);
double avg;
double sum = 0;
int num;
System.out.println("How many numbers?");
int n = scan.nextInt();
for(int i = 1; i <= n; i++)
{
System.out.println("Enter number " + n);
num = scan.nextInt();
sum = sum + num % 4;
}
avg = sum/n;
System.out.println("The average of the remainders is " + avg);
}
}