Im having a real hard time trying to figure out how to put words in alphabetical order. My assignment was to take in student names, and 5 exam scores, and then display: STUDENT NAMES IN ALPHABETICAL ORDER, THEIR AVERAGE, and THEIR LETTER GRADE. The program runs fine but doesn't display the student names in "ALPHABETCIAL ORDER".
#include<iostream>
using namespace std;
int main()
{
string name[25];
float avg, sum;
int n,s1,s2,s3,s4,s5, i;
char grade;
cout<<"How many students are you averaging grades for? ";
cin>>n;
for(i=0;i<n;i++) ///....///////
///////PROMPT USER FOR NAME , AND EXAM SCORES
//////./././//
{