RCMS.cpp
/*
Whenever a user calls the Statistics() function, they are given the choice to order the
records by ascending order of percentage or the top five grades in each subject.

Depending on the choice, they will either go to the sortpercentage() function, or the sortgrades()
function, where their choice will be performed
*/
Whenever a user calls the Statistics() function, they are given the choice to order the
records by ascending order of percentage or the top five grades in each subject.

Depending on the choice, they will either go to the sortpercentage() function, or the sortgrades()
function, where their choice will be performed
Whenever a user calls the Statistics () function they are given the choice to order the records by ascending order of percentage or the top five grades in each subject . Depending on the choice they will either go to the sortpercentage () function or the sortgrades () function where their choice will be performed
void statistics() {
    int n;
    cout << "\n\n\n\n\n\n\n";
    cout << "\t\t              ----------------" << "\n";
    cout << "\t\t                 STATISTICS" << "\n";
    cout << "\t\t              ----------------" << "\n";
    cout << "\t\t   1. VIEW ASCENDING ORDER OF PERCENTAGE" << "\n";
    cout << "\t\t   2. VIEW TOP FIVE GRADES IN EACH SUBJECT" << "\n\n";
    cout << "\t\t           ENTER YOUR OPTION: ";
    cin >> n;
    system("cls");
    switch (n) {
        case 1:
            sortpercentage();
            break;
        case 2:
            sortgrades();
            break;
        default:
            cout << "\n\n\n\n\n\n\n\n\n\n\n\t\t\t\tWRONG OPTION!";
            cout << "\n\n\n\n\n\n\n\n";
    }
}
void statistics ( ) { int n ; cout << " \n \n \n \n \n \n \n " ; cout << " \t \t " << " \n " ; cout << " \t \t " << " \n " ; cout << " \t \t " << " \n " ; cout << " \t \t " << " \n " ; cout << " \t \t " << " \n \n " ; cout << " \t \t " ; cin >> n ; system ( " " ) ; switch ( n ) { case 1 : sortpercentage ( ) ; break ; case 2 : sortgrades ( ) ; break ; default : cout << " \n \n \n \n \n \n \n \n \n \n \n \t \t \t \t " ; cout << " \n \n \n \n \n \n \n \n " ; } }
Whenever a user calls the Statistics() function, they are given the choice to order the
records by ascending order of percentage or the top five grades in each subject.
Whenever a user calls the Statistics () function they are given the choice to order the records by ascending order of percentage or the top five grades in each subject .