Aligning Text in fout code

I am trying to output this data to a text file and the data outputs correctly however I am trying to align the 3 "Average" phrases underneath "Program", "Test", and "Course". I know its my set(w) counts but I have tried everything and am stuck on what to do. Please help!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

          fout<<left<<fixed<<showpoint<<setprecision(2); 
fout<<"123456789012345678901234567890123456789012345678901234567890\n";
fout<<"==============================================================\n";


fout<<setw(20)<<"Student Name"
    <<setw(10)<<"Program"
    <<setw(10)<<"Test"
    <<setw(10)<<"Course"
    <<setw(10)<<"Grade\n"
    <<setw(20)<<""
    <<setw(10)<<"Average"
    <<setw(10)<<"Average"
    <<setw(10)<<"Average"<<endl;
fout<<"==============================================================\n";
fout<<right<<fixed<<showpoint<<setprecision(4);



123456789012345678901234567890123456789012345678901234567890
==============================================================
Student Name        Program   Test      Course    Grade
                        Average   Average   Average   
Topic archived. No new replies allowed.