#include
#include
#include
#include
using namespace std;
int main()
{
int studentId[15];
int studentQuiz1[15];
int studentQuiz2[15];
int studentQuiz3[15];
int studentQuiz4[15];
int studentQuiz5[15];
ifstream infile("farhanafiona.txt");
cout<<"Student"<<" "<<"Quiz 1"<<" "<<"Quiz 2"<<" "<<"Quiz 3"<<" "<<"Quiz 4"<<" "<<"Quiz 5"<<" "<<"High"<<" "<<"LOw"<<" "<<"Average"<
cout<<"Number"<
int noofstudent=0;
while(noofstudent<15 && infile>>studentId[noofstudent] && infile>>studentQuiz1[noofstudent]&& infile>>studentQuiz2[noofstudent]&& infile>> studentQuiz3[noofstudent]&& infile>> studentQuiz4[noofstudent] && infile>>studentQuiz5[noofstudent])
{
cout<
cout<
noofstudent++;
}
2007-03-27
16:52:20
·
1 answers
·
asked by
n f
1
in
Computers & Internet
➔ Programming & Design