GPA average calculator

Dec 12, 2010 at 4:48am
hi, i'm a newbie in programing... my teacher asks me to create a student GPA average calculator. i just can't figure out how...the problem he gave me is this: Create a student GPA average calculator.The program should prompt the user to enter up to 30 GPA's which are stored in a single-dimensional array. Each time he or she enters a GPA, the user should have the option to calculate the current GPA average or enter another GPA.
Dec 12, 2010 at 5:38am
Make a vector of floats.
Dec 12, 2010 at 7:55am
Create a single-dimensional array as follows:

1
2
3
const double NUM_GPAS = 30;
double gpa[NUM_GPAS};          // Holds GPAs for up to 30 students
int count;                                  // Loop counter 


That should get you started.
Last edited on Dec 12, 2010 at 7:56am
Topic archived. No new replies allowed.