• 10-26-2007
kirksson
This is the program that calculates avg. GPA and couple of other things. I am stuck right now and looking which way to go....looking forward for some brains.....:):cool:

Sample Run
***********************************************
* Welcome to the Academic Standing System *
* Developed by your-name *
***********************************************
more students (Y or N)? Y
Enter student id, class, cum. hours, cum. GPA: 1001 2005 10 3.30
Hours and grade (0 0 to end)? 3 3
Hours and grade (0 0 to end)? 4 4
Hours and grade (0 0 to end)? 0 0

Student ID: 1001
Class: 2005
New Cumulative Hours: 17
New Cumulative GPA: 3.41

more students (Y or N)? Y
Enter student id, class, cum. hours, cum. GPA: 1501 2006 23 2.90
Hours and grade (0 0 to end)? 3 2
Hours and grade (0 0 to end)? 3 2
Hours and grade (0 0 to end)? 4 3
Hours and grade (0 0 to end)? 0 0
Student ID: 1501
Class: 2006
New Cumulative Hours: 33
New Cumulative GPA: 2.75

more students (Y or N)? Y
Enter student id, class, cum. hours, cum. GPA: 1231 2004 66 3.45
Hours and grade (0 0 to end)? 4 3
Hours and grade (0 0 to end)? 0 0

Student ID: 1231
Class: 2004
New Cumulative Hours: 70
New Cumulative GPA: 3.42

more students (Y or N)? N

Number of students = 3
Number in good standing = 1

Thank you for using the Academic Standing System. Bye bye!

This is what i have so far:
____________________
• 10-26-2007
robwhit
what is the problem?
• 10-26-2007
kirksson
Where do i go from here?
• 10-26-2007
kirksson
Check out the attachment since the program is incomplete....
• 10-26-2007
robwhit
do the easy stuff first.

welcome function, etc.
Code:

`void reportSummary(int numStudents, int numInGoodStanding);`
you'll need another loop inside your loop to do this:
Quote:

Hours and grade (0 0 to end)? 3 2
Hours and grade (0 0 to end)? 3 2
Hours and grade (0 0 to end)? 4 3
Hours and grade (0 0 to end)? 0 0
Code:

```int Comp_Grade(char grade) {   if (grade == 'A')     return 4;   else if (grade == 'B')     return 3;   else if (grade == 'C')     return 2;   else if (grade == 'D')     return 1;   else if (grade == 'F')     return 0;   else     return -1;     system("pause"); //never reaches here.     return 1; // }```
• 10-27-2007
kirksson
robwhite , you re no help so dont bother
• 10-27-2007
robwhit
ok. no problem.