Hold on sunshine, you are not programming yet. That's just pseudo code.
Ok, so how does it become a program? Well you are pretty close. Here is a step that you performed when you added those numbers but may not have been aware of, you created a total. All of those numbers added together created a total and its this total that you perform the division on.
Go back to real life. The next step would have been to write that total down somewhere so that you could divide it by 7.
And there you have it. The missing piece. Everything that goes into the computer has to be "written down" or stored in memory. It's a thing we do all day everyday but never think about it. Reflect on how many times when you are given a set of numbers to add up the first thing you do is write it down so that you can refer to it again.
The paper acts like memory, a place to store something till needed.
So lets add these numbers to the computers memory. All computers have RAM - Random Access Memory, those are the funny numbers you hear about when the geeks say their computer has 2 gig ram. What they are saying is "that's how much space my computer has to store stuff" and yes bigger is better.
So how do you get the computer to store the total? Two things have to happen:
-set aside a piece of the 3 gig ram in which the total is stored -then give it a name
Why? so that the computer knows where to find it.
So to store the place where the computer can find the total we use a variable. A variable is a placeholder an empty space in memory where the total of those seven tests will be stored.
int Total;
There, you have just leaned how to write code.
That line says to the computer. Hey! put aside some of your memory i want to store a number in it and i want you to call this space "total"
Well, i exaggerated a little, that's not the full c# line to declare a variable, there is slightly more to it than that, but not a lot, so for now that's still pseudo code.