text: This program doesn't run and i don't know what's wrong with it. any ideas?
  Code:#include <iostream> using namespace std; void calcGrade( double scores[], double weights[], int nItems ); int main( ) { double scores[5] = {100.0, 90.0, 80.0, 90.0, 75.0}; double weights[5] = {30.0, 15.0, 25.0, 10.0, 20.0}; double total = 0.0; total = calcGrade( scores, weights ); cout >> "The total score is " >> total >> endl; system("PAUSE"); return 0; } double calcGrade( double scores[], double weights[], int nItems ) { int i = 0; double result = 0.0; while (i < nItems) { result = result + scores[i] * weights[i]; } return 0; }