I have an assignment where I need to write a grades calculator for two tests, the tests average for each student, as well as the letter grade. I got the code to build but the output window will not stay open. I do not know what else I am supposed to add to keep the window open. If someone knows how I can fix this problem any help would be appreciated thank you for your time.
int main()
{
// This program calculates the overall total points for two tests, the numeric grade and the letter grade.
//Declare variables to munipulate data
string studentName;
double test1, test2;
double average = 0.0;
char lettergrade;
int studentCount = 0;
double sumAverage = 0.0;
double cAverage = 0.0;
int i;
I tried <std::cout << "Press ENTER to continue...";
std::cin.ignore( std::numeric_limits<std::streamsize>::max(), '\n' );
>
and the window does open but after pressing a button it closes without the calculator working. I tried <cin.get();
cin.get();> too but it won't open at all.