//Allan Clark Alavg.cpp// //Oct 10/02// //To Calculate and make a class and student average for one year including Semester 1 and Semester 2// #include //The library call for input/output// #include //The library call for input/output manipulation// #include //The library call for clrscr()// #include //The library call used to manipulate string variables. (strcpy)// #include //The library call to use math equations (sqrt) // #include //The library call to acquire the system's date// int main(void) { char yes; // Declaration of Local Variables // int year; double classavg, studaverage,term1, term2, classtotal, studcount; //Fowler Statement// cout << endl << endl; cout << " ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*" << endl; cout << " ~This Program will calculate and make a class*" << endl; cout << " ~ and student average for one year including *" << endl; cout << " ~ Semester 1 and Semester 2 *" << endl; cout << " ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*" << endl; cout << endl; cout << " // Allan Clark - Programmer //" << endl << endl; cout << " Press Any Key to Continue"; getch(); // gets character // start: clrscr(); //Clears the fowler screen and goes to the input screen// time_t t=time(NULL); cout << "\t" << ctime(&t)<< endl << endl; //Displays the time// cout << endl << endl; cout << "\t\tClass Summary Analysis" << endl; cout << "\t\t~~~~~~~~~~~~~~~~~~~~~~" << endl; cout << endl; cout << " How many Students are being processed?: "; cin >> studcount; cout << endl << endl; cout << " What school year is being proccessed?: "; cin >> year; if(studcount < 1) //If the student count is lower than one then the program restarts// { goto start; } }