if (avg >= 90.0 && avg <= 100.0) // put decimal points and trailing zero for numbers which are double
{
std::cout << "The letter grade is A\n";
}
elseif (avg >= 80.0 && avg < 90.0)
{
std::cout << "The letter grade is Bn";
}
An else cannot have a condition, and watch for extraneous semicolons on line 50.
Consider using an array (have you learnt about them yet? :+) ) and for loops to process them.
Good Luck!!
Edit: if you want to use whole numbers, cast the avg to an unsigned int: