So I think I am getting closer and wonted you to take a look at what I have. It still is not working but I have the whole thing written and have been working on it I have seem to hit a wall tho. can you help me out?
When I Run it I get
5 5 5 5
5 5 5 5
5 5 5 5
5 5 5 5
5 5 5 5
Letter grade is F!
Class average is: 0.4
As you know, cin and cout are used for input and output respectively, to/from the console. cin is a type of input stream. When you use a file for input, then you use an ifstream - that is another type of input stream.
In most cases the streams share common behaviour.
for example you can do this such things as cin >> x, or getline(cin, y)
or equally, you can do something like this, ifstream inputFile("Student Data.txt");
then inputFile >> x, or getline(inputFile, y)
Notice how cin can simply be replaced by inputFile, that's because both are input streams. I hope this helps a little, I'm trying to illustrate at least a little bit, how these things fit together.