Hello- I have to stay in 1d with an array and cannot get calculations to work to save my life. Any assistance with this would be much appreciated.
I will include the input file. You will need to save the following to a notepad file and save it as "input4.txt" The input file will need to be in the same directory as the program:
//******************************************************************
//void function without parameters
void headerfn(){
cout<<"************************************************\n";
cout<<"* IT 210 Business Applications with C++ *\n";
cout<<"* Programmer :Mike Davis *\n";
cout<<"* Date: November 5, 2009 *\n";
cout<<"* *\n";
cout<<"* Program Assignment 4: Student Grades 4 *\n";
cout<<"* *\n";
cout<<"* This program uses functions to read *\n";
cout<<"* student information from an input text *\n";
cout<<"* file into string and integer arrays. *\n";
cout<<"* It then calculates and outputs avgs *\n";
cout<<"* and grades to the monitor as well as *\n";
cout<<"* to an output text file *\n";
cout<<"************************************************\n";
}//end of headerfn
//******************************************************************
//input function
void inputfn(string fnames[40], string lnames[40], float prog1[40],
float prog2[40], float prog3[40], float test1[40],
float test2[40], float test3[40], int &counter){