Hey for what ever reason i cant change anything in this code. i need to add an extra grade to the average and for it to say "Enter four grade for student number". when i run it it says "Enter three grade for student number" and it wont let me add an extra grade to the average i tryed adding grade4. please help thanks
#include <iostream>
#include <iomanip>
using namespace std;
char LetterGrade(double);
double Average(int, int, int,int);
int main()
{
int grade1, grade2, grade3 , grade4;
int numberofStudents;
double totalofAver = 0;
double studentaver;
cout << "enter the number of students in Class: ";
cin >> numberofStudents;
cout << setprecision(2) << fixed;
for (int i = 0; i < numberofStudents; i++)
{
cout << "Enter four grade for student number " << i + 1 << " : ";