It seems the maximum your total grade sum can be is 1, so try dividing the testing conditions by 100.

This code in particular needs to be changed,


cout <<"Letter grade: ";
73...