Quote Originally Posted by GCDEF View Post
Again, A is a variable name. If you really mean the character A, wrap it in single quotes 'A'.

The rest of your problems seem to be because you have problem batching your braces in findLetter.

FWIW, I find that style of brace matching pretty hard to read. Coded like this, your problem becomes obvious.
Code:
int findLetter(int studentAverage, char letterGrade)
{
    if ( studentAverage > 95 )
    {
         letterGrade = A;

         if ( 95 > studentAverage && studentAverage > 85 )
         {
               letterGrade = B;
         }
         if ( 85 > studentAverage && studentAverage > 80 )
         {
               letterGrade = C;
         }
         if ( 80 > studentAverage && studentAverage > 69 )
         {
              letterGrade = D;
         }
         if ( studentAverage < 69 )
         {
              letterGrade = F;
         }
         return letterGrade;
    } 

void writeGrade(int studentAverage, int letterGrade){
I believe I already mentioned separating your if statements with else. I also mentioned the return in your for statement and that you're trying to return two values. We're all happy to help, but you need to pay attention to the advice you're getting. You still have a lot of other problems, but work on them first.
Thanks, will do. I noticed that the opening of the file, writing of the variable, and closing of the file were messed up. I just figured out how to fix it and now it is fixed. Will do that now. Thank you!