I sincerely doubt that shebang is correct. "local" is misspelled, and
you forgot the beginning /
If your instructor did not tell you to put those at the top of every
program, drop the course and demand your money back.
What do you think that's doing? $number doesn't exist. So it's
undefined. So is $largest. What was the point of that?
Okay, here you're incrementing the total number of numbers
Here you're keeping a running total of all the numbers.
Here you find the average of the numbers.
So where's your code that attempts to do the rest? What have you
*tried* to find the largest and smallest numbers? How did it fail?
Where did you get stuck?
Make an attempt, and then ask for help if it doesn't work. No one is
too likely to write your homework for you.