I would like some help adding a
void getInputChar(string, char &); and a bool ignoreCaseCompare (char, char); to my program
Code:
// This program calculates student exam average.#include <iostream>
#include <string>
using namespace std;
int main()
{
   int studScore;
   int studAvg; 
   int Exam1;
   int Exam2;
   int Exam3; 
   int examTotal;
   string studFirstName;
   string studLastName;
   char grade;

   // Get students first name.
   cout << "Enter student's first name. ";
   cin >> studFirstName;
   // Get students last name.
   cout << "Enter student's last name. ";
   cin >> studLastName;
   // Get exam 1 score.
   cout <<  "grade from exam 1 = ";
   cin >> Exam1;
   // Get exam 2 score.
   cout <<  "grade from exam 2 = ";
   cin >> Exam2;
   // Get exam 3 score.
   cout <<  "grade from exam 3 = ";
   cin >> Exam3;
   // Calculate exam total.
   studScore = Exam1 + Exam2 + Exam3;
   // Calculate exam total.
   studAvg = studScore/3;
   // End of Project 1
   // Beginning of Project 1.2
   // if else condition
   // statement to display grade letter.
   if (studAvg >= 90) 
    grade = 'A';
   else if (studAvg >= 80) 
    grade = 'B';
   else if (studAvg >= 70) 
    grade = 'C';
   else if (studAvg >= 60)
    grade = 'D';
   else
    grade = 'F';
   // Display the average.
   cout <<  "average is " 
     << studAvg 
  << " " 
  <<grade << endl;
   // Stop program
   system ("pause");
   return 0; 
}
Iam guessing it is pretty simple to do seeing that I am using char for the grades. But I am not a programmer by any means and I am on chapter 2 in the book and we are working on chapter 7. This stuff has just been very difficult for me to understand. So please show me an example of what to do because I am a visual learner and the words mean very little if i can not see it .

Thanks