//@Author Damien Bell
#include <iostream>

using namespace std;
int main(){
    int grade=0;
    
    cout << "Enter the student's grade (1-100):";
    cin >> grade;
    
    while (grade < 1 || grade > 100){
        cout << "\nEnter the student's grade, the number you entered was invalid: ";
        cin >> grade;
    }
    
    grade /= 10;  // 90 -> 9
    
    if (grade <5){
        grade = 5;
    }
    
    switch(grade){
        case 5:{
            cout <<"\nYou got an F, Needs improvement";
            break;
        }
        case 6:{
            cout <<"\nYou got an D, Needs improvement";
            break;
        }        
        case 7:{
            cout <<"\nYou got an C, You're average";
            break;
        }        
        case 8:{
            cout <<"\nYou got an B, Well done";
            break;
        }        
        case 9:{
            cout <<"\nYou got an A, Very well done";
            break;
        }        
        case 10:{
            cout <<"\nYou got an A+, Holy crap!!";
            break;
        }        
        default:{
            cout << "\nSomething went wrong";
        }
               
    }//End switch
    
    
    
    
 return 0;
}


//A - F
//1 - 100
//90-100 A
//80-89 B
//70-79 C
//60-69 D
// 0-59 F