Here's a solution that's probably close to what your teacher was expecting. The changes I made to your code:
1. put your logic in a function
2. added return 0;
3. called the function from main.
[CODE}
#include <iostream.h>
int qualityPoints()
{
int s;
cout << "Enter student's grade (0-100)" << endl;
cin >> s;...
Leave a comment: