Grade Array issues

subscript of integral type error

Page 1 of 1

10 Replies - 1493 Views - Last Post: 03 December 2010 - 04:02 PM Rate Topic: -----

#1 chicken17  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 02-December 10

Grade Array issues

Posted 02 December 2010 - 11:45 AM

Hey anyone,

I have this program for inputing two sets of scores, then finding the pointGrade total and then assigning a letter grade and then giving averages for three of the sets of numbers. I am getting an error that my subscript is not of the integral type in my calculatePointGrades function. I know I am supposed to have an int for the subscript, but if I change it, I start getting all sorts of errors. Anyone got any help? I think there is other stuff I need to resolve to, but don't know what, so if you see anything wrong, let me know.
#include <iostream>
#include <iomanip>
using namespace std;


#define MAX_WIDTH 7
int pointGrades,
	examScores;
float labScores;
char grades;
double arrayPointGrades[100];
char arrayLetterGrades[100];

int getStudentCount();
void getExamScores(int, int[]);
void getLabScores(int, double[]);
void calculatePointGrades(double[], double[], int, double[]);
void calculateLetterGrades(double[], char[], int);
void showGradeData(int[], double[], char[], double[], int);
double intArrayAve(int, int[]);
double doubleArrayAve(int, double[]);
double double_ArrayAve(int, double[]);


void main()
{
	int numStudents=getStudentCount();
	cout<<"You entered: "<<numStudents<<" Students!"<<endl;
    int arrayExam[100];
	getExamScores(numStudents, arrayExam);
    double arrayLab[100];
	getLabScores(numStudents, arrayLab);
	showGradeData(arrayExam, arrayLab, arrayLetterGrades, arrayPointGrades, numStudents);
	cout<<endl<<endl;
	cout<<setprecision(1)<<fixed;
	cout<<"Exam Average:"<<right<<intArrayAve(numStudents, arrayExam)<<endl;
	cout<<"Lab Average Average:"<<right<<doubleArrayAve(numStudents, arrayLab)<<endl;
	cout<<"Point Grade Average:"<<right<<double_ArrayAve(numStudents,arrayPointGrades)<<endl;
	
	cin.ignore(2);
	return;
}


int getStudentCount()
{
	int numStudents=0;
	while (numStudents<1)
	{
		cout<<"Please enter the number of students:"<<endl;
		cin>>numStudents;
		cout<<endl;
	}
	return numStudents;
}
void getExamScores ( int arrayExam[], int numStudents)
{
	cout<<"Please enter the exam grades for each student:"<<endl;
	for (int examScores=0; examScores<numStudents; examScores++)
	{
		cout<<"Student "<<examScores+1<<" grade=";
		cin>>arrayExam[examScores];
		cout<<endl;
	}
}
void getLabScores (double arrayLab[], int numStudents )
{
	cout<<"Please enter the lab grades for each student:"<<endl;
	for (int labScores=0; labScores<numStudents; labScores++)
	{
		cout<<"Student "<<labScores+1<<" grade=";
		cin>>arrayLab[labScores];
		cout<<endl;
	}
}
void calculatePointGrades( int arrayExam[],  double arrayLab[], int numStudents, double arrayPointGrades[])
{
    double pointGrades =0;
	
	for (int i=0; i<=numStudents; i++)
	{
		
		pointGrades=(arrayLab[i]*.3)+(arrayExam[i]*.7);
		cin>>arrayPointGrades[pointGrades];
		cout<<endl;
	}
}
void calculateLetterGrades(double arrayPointGrades[], char arrayLetterGrades[], int getStudentCount)
{   

	int A,B,C,D,F;  
    int grade;  
    arrayPointGrades[pointGrades];  
    if (grade >= 90)  
    cout << 'A';  
    else if (grade >= 80)  
    cout << 'B';  
    else if (grade >= 70)  
    cout << 'C';  
    else if (grade >= 60)  
    cout << 'D';  
	else 
    cout << 'F' << endl;  
    cin >> arrayLetterGrades[grade];
	cout<<endl;
}
void showGradeData(int arrayExam[], double arrayLab[], char arrayLetterGrades[], double arrayPointGrades[], int numStudents)
{   
	cout<<setw(MAX_WIDTH)<<"SN"<<setw(MAX_WIDTH)<<"Exam"<<setw(MAX_WIDTH)<<"Lab Ave."<<setw(MAX_WIDTH)<<
		"Point Grade"<<setw(MAX_WIDTH)<<"Letter Grade"<<endl<<endl;
	cout<<setprecision(1)<<fixed;
	for (int i=0; i<=numStudents; i++)
	{
		cout<<setw(MAX_WIDTH)<<i+1<<""<<setw(MAX_WIDTH)<<arrayExam[i]<<""<<setw(MAX_WIDTH)<<
			arrayLab[i]<<""<<setw(MAX_WIDTH)<<arrayPointGrades[i]<<""<<setw(MAX_WIDTH)<<
			arrayLetterGrades[i]<<""<<endl;
	}

	
}

double intArrayAve(int numStudents, int arrayExam[])
{
	int i;
	int sum=0;

	for(i=0; i<numStudents; i++)
		sum=sum + arrayExam[i];

	return sum/numStudents;
}
double doubleArrayAve(int numStudents,  double arrayLab[])
{
	int i;
	double sum=0.0;

	for(i=0; i<numStudents; i++)
		sum=sum +arrayLab[i];

	return sum/numStudents;
}
double double_ArrayAve(int numStudents,  double arrayPointGrades[])
{
	int i;
	double sum=0.0;

	for(i=0; i<numStudents; i++)
		sum=sum +arrayPointGrades[i];

	return sum/numStudents;
}


MOD EDIT: When posting code...USE CODE TAGS!!!

:code:

This post has been edited by JackOfAllTrades: 02 December 2010 - 12:01 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Grade Array issues

#2 jimblumberg  Icon User is offline

  • member icon


Reputation: 4280
  • View blog
  • Posts: 13,443
  • Joined: 25-December 09

Re: Grade Array issues

Posted 02 December 2010 - 12:17 PM

Your biggest problem is using global variables and then creating variables inside functions with the same names.

Quote

main.cpp||In function ‘void getExamScores(int*, int)’:|
main.cpp|59|warning: declaration of ‘examScores’ shadows a global declaration|
main.cpp|8|warning: shadowed declaration is here|
main.cpp||In function ‘void getLabScores(double*, int)’:|
main.cpp|69|warning: declaration of ‘labScores’ shadows a global declaration|
main.cpp|9|warning: shadowed declaration is here|
main.cpp||In function ‘void calculatePointGrades(int*, double*, int, double*)’:|
main.cpp|76|warning: declaration of ‘arrayPointGrades’ shadows a global declaration|
main.cpp|11|warning: shadowed declaration is here|
main.cpp|78|warning: declaration of ‘pointGrades’ shadows a global declaration|
main.cpp|7|warning: shadowed declaration is here|
main.cpp|84|error: invalid types ‘double*[double]’ for array subscript|
main.cpp||In function ‘void calculateLetterGrades(double*, char*, int)’:|
main.cpp|88|warning: declaration of ‘arrayLetterGrades’ shadows a global declaration|
main.cpp|12|warning: shadowed declaration is here|
main.cpp|88|warning: declaration of ‘arrayPointGrades’ shadows a global declaration|
main.cpp|11|warning: shadowed declaration is here|
main.cpp|93|warning: statement has no effect|
main.cpp|91|warning: unused variable ‘A’|
main.cpp|91|warning: unused variable ‘B’|
main.cpp|91|warning: unused variable ‘C’|
main.cpp|91|warning: unused variable ‘D’|
main.cpp|91|warning: unused variable ‘F’|
main.cpp|88|warning: unused parameter ‘getStudentCount’|
main.cpp||In function ‘void showGradeData(int*, double*, char*, double*, int)’:|
main.cpp|107|warning: declaration of ‘arrayPointGrades’ shadows a global declaration|
main.cpp|11|warning: shadowed declaration is here|
main.cpp|107|warning: declaration of ‘arrayLetterGrades’ shadows a global declaration|
main.cpp|12|warning: shadowed declaration is here|
main.cpp||In function ‘double double_ArrayAve(int, double*)’:|
main.cpp|142|warning: declaration of ‘arrayPointGrades’ shadows a global declaration|
main.cpp|11|warning: shadowed declaration is here|


Solution stop using global variables.

For the following error:

Quote

main.cpp|84|error: invalid types ‘double*[double]’ for array subscript|


Your error is:

void calculatePointGrades( int arrayExam[],  double arrayLab[], int numStudents, double arrayPointGrades[])
{
    double pointGrades =0;

	for (int i=0; i<=numStudents; i++)
	{

		pointGrades=(arrayLab[i]*.3)+(arrayExam[i]*.7);
		cin>>arrayPointGrades[pointGrades];


in the last line above you are trying to use arrayPointGrades{} with an index of pointGrades which is a floating point number but must be a integer.

Why are you asking the user for the array entry when you have computed pointGrades and then never use it?

Jim

This post has been edited by jimblumberg: 02 December 2010 - 12:17 PM

Was This Post Helpful? 1
  • +
  • -

#3 chicken17  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 02-December 10

Re: Grade Array issues

Posted 02 December 2010 - 03:53 PM

Here is my newest version. I do want to use pointGrades. I want to read pointGrades into the arrayPointGrades array. That is the problem I am having. The pointGrades are supposed to have a decimal place and it wont' allow me to read a double into the array.
Any help?

#include <iostream>
#include <iomanip>
using namespace std;


#define MAX_WIDTH 7

double arrayPointGrades[100];
char   arrayLetterGrades[100];

int getStudentCount();
void getExamScores(int, int[]);
void getLabScores(int, double[]);
void calculatePointGrades(double[], double[], int, double[]);
void calculateLetterGrades(double[], char[], int);
void showGradeData(int[], double[], char[], double[], int);
double intArrayAve(int, int[]);
double doubleArrayAve(int, double[]);
double double_ArrayAve(int, double[]);


void main()
{
	int numStudents=getStudentCount();
	cout<<"You entered: "<<numStudents<<" Students!"<<endl;
    int arrayExam[100];
	getExamScores(numStudents, arrayExam);
    double arrayLab[100];
	getLabScores(numStudents, arrayLab);
	showGradeData(arrayExam, arrayLab, arrayLetterGrades, arrayPointGrades, numStudents);
	cout<<endl<<endl;
	
	cin.ignore(2);
	return;
}


int getStudentCount()
{
	int numStudents=0;
	while (numStudents<1)
	{
		cout<<"Please enter the number of students:"<<endl;
		cin>>numStudents;
		cout<<endl;
	}
	return numStudents;
}
void getExamScores (int numStudents, int arrayExam[])
{
	cout<<"Please enter the exam grades for each student:"<<endl;
	for (int examScores=0; examScores<numStudents; examScores++)
	{
		cout<<"Student "<<examScores+1<<" grade=";
		cin>>arrayExam[examScores];
		cout<<endl;
	}
}
void getLabScores (int numStudents, double arrayLab[])
{
	cout<<"Please enter the lab grades for each student:"<<endl;
	for (int labScores=0; labScores<numStudents; labScores++)
	{
		cout<<"Student "<<labScores+1<<" grade=";
		cin>>arrayLab[labScores];
		cout<<endl;
	}
}
void calculatePointGrades(int arrayExam[], double arrayLab[], int numStudents, double arrayPointGrades[])
{
    double pointGrades;
	
	for (int i=0; i<=numStudents; i++)
	{
		
		pointGrades=(arrayLab[i]*.3)+(arrayExam[i]*.7);
		cin>>arrayPointGrades[pointGrades];
		cout<<endl;
	}
		
	
}
void calculateLetterGrades(double arrayPointGrades[], char arrayLetterGrades[], int getStudentCount)
{   

	double pointGrades;  
    int grade=0;  
    arrayPointGrades[pointGrades];  
    if (grade >= 90)  
    cout << 'A';  
    else if (grade >= 80)  
    cout << 'B';  
    else if (grade >= 70)  
    cout << 'C';  
    else if (grade >= 60)  
    cout << 'D';  
	else 
    cout << 'F' << endl;  
    cin >> arrayLetterGrades[grade];
	cout<<endl;
}
void showGradeData(int arrayExam[],double arrayLab[],char arrayLetterGrades[], double arrayPointGrades[], int numStudents)
{   
	cout<<setw(MAX_WIDTH)<<" SN "<<setw(MAX_WIDTH)<<"   Exam "<<setw(MAX_WIDTH)<<"  Lab Ave.  "<<setw(MAX_WIDTH)<<
		"  Point Grade  "<<setw(MAX_WIDTH)<<"  Letter Grade  "<<endl<<endl;
	cout<<setprecision(1)<<fixed;
	for (int i=0; i<=numStudents; i++)
	{
		cout<<setw(MAX_WIDTH)<<i+1<<""<<setw(MAX_WIDTH)<<arrayExam[i]<<"  "<<setw(MAX_WIDTH)<<
			arrayLab[i]<<"      "<<setw(MAX_WIDTH)<<arrayPointGrades[i]<<"   "<<setw(MAX_WIDTH)<<
			arrayLetterGrades[i]<<"  "<<endl;
	}

	cout<<setprecision(1)<<fixed;
	cout<<"Exam Average:               "<<intArrayAve(numStudents, arrayExam)<<endl;
	cout<<"Lab Average Average:        "<<doubleArrayAve(numStudents, arrayLab)<<endl;
	cout<<"Point Grade Average:        "<<double_ArrayAve(numStudents,arrayPointGrades)<<endl;
	
}

double intArrayAve(int numStudents, int arrayExam[])
{
	int i;
	int sum=0;

	for(i=0; i<numStudents; i++)
		sum=sum + arrayExam[i];

	return sum/numStudents;
}
double doubleArrayAve(int numStudents, double arrayLab[])
{
	int i;
	double sum=0.0;

	for(i=0; i<numStudents; i++)
		sum=sum +arrayLab[i];

	return sum/numStudents;
}
double double_ArrayAve(int numStudents,  double arrayPointGrades[])
{
	int i;
	double sum=0.0;

	for(i=0; i<numStudents; i++)
		sum=sum +arrayPointGrades[i];

	return sum/numStudents;
}


MOD EDIT: When posting code...USE CODE TAGS!!!

:code:

This post has been edited by JackOfAllTrades: 02 December 2010 - 04:06 PM

Was This Post Helpful? 0
  • +
  • -

#4 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6110
  • View blog
  • Posts: 23,667
  • Joined: 23-August 08

Re: Grade Array issues

Posted 02 December 2010 - 04:06 PM

Please pay attention to the rules and post your code IN CODE TAGS as shown below:

:code:
Was This Post Helpful? 0
  • +
  • -

#5 jimblumberg  Icon User is offline

  • member icon


Reputation: 4280
  • View blog
  • Posts: 13,443
  • Joined: 25-December 09

Re: Grade Array issues

Posted 02 December 2010 - 09:05 PM

Quote

I want to read pointGrades into the arrayPointGrades array.


In the following code:

void calculatePointGrades(int arrayExam[], double arrayLab[], int numStudents, double arrayPointGrades[])
{
    double pointGrades;
	
	for (int i=0; i<=numStudents; i++)
	{
		
		pointGrades=(arrayLab[i]*.3)+(arrayExam[i]*.7);
		cin>>arrayPointGrades[pointGrades];
		cout<<endl;
	}
		
	
}



Why are you doing this?

pointGrades=(arrayLab[i]*.3)+(arrayExam[i]*.7);


And then never using the result of this formula. Why do you want to get from the user a value that you have just computed.

Plus your compiler is telling you that the following is wrong:

arrayPointGrades[pointGrades];


It is telling you that the index of an array must be an integer, pointGrades is a floating point number.

Don't you want to place the computed pointGrades into the array arrayPointGrades?

How do you use arrays? Have a look at the following link arrays. Remember you are in a loop so shouldn't the loop variable (in this case i) play some part in the insertion into the array? Why ask the user for a value you have just computed? (hint drop the cin).

Once you have figured out how to use the array you will still have problems because you are still using global variables.

Also you seem to know how to use arrays as you are using them correctly in other parts of your program.

Jim
Was This Post Helpful? 0
  • +
  • -

#6 chicken17  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 02-December 10

Re: Grade Array issues

Posted 02 December 2010 - 10:27 PM

YES!!!! I want to put the computed pointGrades into arrayPointGrades. I am so frustrated with this. I have been working on it for 12 straight hours and have not gotten much further. How do I do this?? The reason I am doing this is because the user is inputting a test grade and a lab grade and the lab grade is worth 30% and the exam grade is worth 70% and I need to calculate the point grade and then put it in an array and use that array in the showGradeData function to display the pointgrades of the number of students requested by the user. Help!
Was This Post Helpful? 0
  • +
  • -

#7 jimblumberg  Icon User is offline

  • member icon


Reputation: 4280
  • View blog
  • Posts: 13,443
  • Joined: 25-December 09

Re: Grade Array issues

Posted 03 December 2010 - 07:51 AM

Did you read the link I posted in my last post?

Do you understand the information contained in that link?

How do you put a value into any variable?

Don't you do something like:

int myVariable;

myVariable = 10;



Doesn't the last line above assign 10 to myVariable?

Now don't arrays follow the same logic?

As I said in my last post you are using arrays correctly in the rest of your code, so look at this code which shows the correct usage of an array.

for (int i=0; i<=numStudents; i++)
{
   pointGrades=(arrayLab[i]*.3)+(arrayExam[i]*.7);


This code is directly above the line where you are having problems.


   cin>>arrayPointGrades[pointGrades];


Now we know that you can not use arrayPointGrades like this because your compiler and I have told you that.

So why are you using pointGrades, a floating point value, as the index of your arrayPointGrades array?

Now since your array index will be from 0 to numStudents wouldn't using your loop variable (i) be better than using pointGrades as your index?

Don't you want to assign the value that you computed (=) and placed into pointGrades into the array? Also you probably do not want the user to enter the value for this array so delete the "cin >>" from this line.


Quote

Once you have figured out how to use the array you will still have problems because you are still using global variables.


You can not use a local variable that has the same name as the global variable. As I said before you should stop using global variables.


Jim
Was This Post Helpful? 1
  • +
  • -

#8 chicken17  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 02-December 10

Re: Grade Array issues

Posted 03 December 2010 - 10:17 AM

Thank you very much. That helped. I got the arrayPointGrades to work, but now can't get arrayLetterGrades to work. The only reason I had the global variables was for testing purposes. I couldn't even run the program to see what was happening without them. They will not be in the final product. I sort of understand arrays, but am currently in my first programming class ever! I have really struggled to get it all. I have probably worked on this program for 40 hours this week if that tells you how much time I need to do something like this. Here is my newest code. If you have any pointers on how to get the arrayLetterGrades to work and print on the table.
#include <iostream>
#include <iomanip>
using namespace std;


#define MAX_WIDTH 7

double arrayPointGrades[100]={0};
char   arrayLetterGrades[100]={0};

int getStudentCount();
void getExamScores(int, int[]);
void getLabScores(int, double[]);
void calculatePointGrades(int[], double[], int, double[]);
void calculateLetterGrades(double[], char[], int);
void showGradeData( int[],  double[], char[], double[], int);
double intArrayAve(int, int[]);
double doubleArrayAve(int, double[]);
double double_ArrayAve(int,double[]);


void main()
{
	int numStudents=getStudentCount();
	cout<<"You entered: "<<numStudents<<" Students!"<<endl;
	int arrayExam[100]={0};
	getExamScores(numStudents, arrayExam);
	double arrayLab[100]={0};
	getLabScores(numStudents, arrayLab);
	calculatePointGrades(arrayExam, arrayLab, numStudents, arrayPointGrades);
	
	showGradeData(arrayExam, arrayLab, arrayLetterGrades, arrayPointGrades, numStudents);
	cout<<endl<<endl;
	
	cin.ignore(2);
	return;
}


int getStudentCount()
{
	int numStudents=0;
	while (numStudents<1)
	{
		cout<<"Please enter the number of students:"<<endl;
		cin>>numStudents;
		cout<<endl;
	}
	return numStudents;
}
void getExamScores (int numStudents, int arrayExam[])
{
	cout<<"Please enter the exam grades for each student:"<<endl;
	for (int examScores=0; examScores<numStudents; examScores++)
	{
		cout<<"Student "<<examScores+1<<" grade=";
		cin>>arrayExam[examScores];
		cout<<endl;
	}
}
void getLabScores (int numStudents, double arrayLab[])
{
	cout<<"Please enter the lab grades for each student:"<<endl;
	for (int labScores=0; labScores<numStudents; labScores++)
	{
		cout<<"Student "<<labScores+1<<" grade=";
		cin>>arrayLab[labScores];
		cout<<endl;
	}
}
void calculatePointGrades( int arrayExam[],double arrayLab[], int numStudents, double arrayPointGrades[])
{
    
	
	for (int i=0; i<=numStudents; i++)
	
	{
		arrayPointGrades[i]=(arrayLab[i]*.3)+(arrayExam[i]*.7);
	}
		
	
}
void calculateLetterGrades(double arrayPointGrades[], char arrayLetterGrades[], int numStudents)
{   

	for (int i=0; i<=numStudents;i++)
	{
    int grade=0;  
	cout<<arrayPointGrades[i];  
    if (grade >= 90)  
    cout << 'A';  
    else if (grade >= 80)  
    cout << 'B';  
    else if (grade >= 70)  
    cout << 'C';  
    else if (grade >= 60)  
    cout << 'D';  
	else 
    cout << 'F' << endl;  
    cin >> arrayLetterGrades[i];
	cout<<endl;
	}
}

void showGradeData( int arrayExam[], double arrayLab[],char arrayLetterGrades[], double arrayPointGrades[], int numStudents)
{   
	cout<<setw(MAX_WIDTH)<<" SN "<<setw(MAX_WIDTH)<<"   Exam "<<setw(MAX_WIDTH)<<"  Lab Ave.  "<<setw(MAX_WIDTH)<<
		"  Point Grade  "<<setw(MAX_WIDTH)<<"  Letter Grade  "<<endl<<endl;
	cout<<setprecision(1)<<fixed;
	for (int i=0; i<=numStudents; i++)
	{
		cout<<setw(MAX_WIDTH)<<i+1<<""<<setw(MAX_WIDTH)<<arrayExam[i]<<"  "<<setw(MAX_WIDTH)<<
			arrayLab[i]<<"      "<<setw(MAX_WIDTH)<<arrayPointGrades[i]<<"   "<<setw(MAX_WIDTH)<<
			arrayLetterGrades[i]<<"  "<<endl;
	}

	cout<<setprecision(1)<<fixed;
	cout<<"Exam Average:               "<<intArrayAve(numStudents, arrayExam)<<endl;
	cout<<"Lab Average Average:        "<<doubleArrayAve(numStudents, arrayLab)<<endl;
	cout<<"Point Grade Average:        "<<double_ArrayAve(numStudents,arrayPointGrades)<<endl;
	
}

double intArrayAve(int numStudents, int arrayExam[])
{
	int i;
	int sum=0;

	for(i=0; i<numStudents; i++)
		sum=sum + arrayExam[i];

	return sum/numStudents;
}
double doubleArrayAve(int numStudents, double arrayLab[])
{
	int i;
	double sum=0.0;

	for(i=0; i<numStudents; i++)
		sum=sum +arrayLab[i];

	return sum/numStudents;
}
double double_ArrayAve(int numStudents, double arrayPointGrades[])
{
	int i;
	double sum=0.0;

	for(i=0; i<numStudents; i++)
		sum=sum +arrayPointGrades[i];

	return sum/numStudents;
}


Any Help would be great.
Was This Post Helpful? 0
  • +
  • -

#9 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6110
  • View blog
  • Posts: 23,667
  • Joined: 23-August 08

Re: Grade Array issues

Posted 03 December 2010 - 10:38 AM

Well I would start by

a. actually calling your calculateLetterGrades function
b. changing said function to set the data in the arrayLetterGrades array
Was This Post Helpful? 1
  • +
  • -

#10 n8wxs  Icon User is offline

  • --... ...-- -.. . -. ---.. .-- -..- ...
  • member icon

Reputation: 972
  • View blog
  • Posts: 3,878
  • Joined: 07-January 08

Re: Grade Array issues

Posted 03 December 2010 - 10:52 AM

  • It's int main() NEVER void main()
  • You never call calculateLetterGrades()

Was This Post Helpful? 0
  • +
  • -

#11 chicken17  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 02-December 10

Re: Grade Array issues

Posted 03 December 2010 - 04:02 PM

Thanks everyone! I got it all figured out.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1