You need to actually run your application and compare the output of that program with the output that is expected from your instructor.
Take each step one at a time. Don't try to get it all done at once or you will probably confuse yourself a bit.

One small bit of advice for this bit of code:
for (int i = 0 ; i < array.length; i++ ) {
           array[i] = input.nextInt();
 
        }
 
    for (int i=0; i<=array.length; i++)  {
        {  
            total += array[i];  
        }

You could combine these into a single loop to look like
for (int i = 0; i < array.length; i++)
{
    array[i] = input.nextInt();
    total += array[i];
}