grade table array

  • shankman2k9
  • Born
  • Born
  • shankman2k9
  • Posts: 4

Post 3+ Months Ago

Im looking to build a grade table using a multidimensional array and loop statements if necessary. Using these prototypes
int getStudentCount();
int getExamScores();
int getLabScores();
int calculatePointGrades();
int calculateLetterGrades();
int showGradeData();
double intArrayAve();
double doubleArrayAve();
i need to get a chart to look like this
SN
Exam Lab
Ave. Point
Grade Letter
Grade
1 100 100.0 xxx.x x
2 95 99.9 xx.x x
3 90 99.9 xx.x x
4 80 88.8 xx.x x
5 70 77.7 xx.x x
6 60 66.6 xx.x x
7 50 55.5 xx.x x

can anyone help on a construct?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

Show us your code. What have you tried so far?
  • shankman2k9
  • Born
  • Born
  • shankman2k9
  • Posts: 4

Post 3+ Months Ago

This is what I have so far. I just dont know how to create the table and prompt the user.

Code: [ Select ]
#include <iostream>

using namespace std;

const int NO_OF_STUDENTS = 10;
int getstudentcount ();
int getexamscores ();
int getlabscores();
int calculatepointgrades ();
int calculatelettergrades ();
int showgradedata ();
int arrayavg ();
double arrayave ();
int students[NO_OF_STUDENTS];
int examscores[NO_OF_STUDENTS];
int labscores[NO_OF_STUDENTS];
int s;
int Exam;
int lab;
int main()
{
    int getstudentcount ();
    cout << "Enter the number of students"<< endl;
    for (int s = 0; s <= 10; s++)

    {
        
        int students (0);
        cout << "students[NO_OF_STUDENTS]";
    }
    
    int getexamscores ();
    cout << "Enter the student exam scores"<< endl;
    return 0;
    for(int Exam = 0; Exam <= 10; Exam++)
    {
        int examscores (0);
        cout << "examscores[NO_OF_STUDENTS]";
    }
    
    int getlabscores();
    cout << "Enter the students lab scores" <<endl;
}
  1. #include <iostream>
  2. using namespace std;
  3. const int NO_OF_STUDENTS = 10;
  4. int getstudentcount ();
  5. int getexamscores ();
  6. int getlabscores();
  7. int calculatepointgrades ();
  8. int calculatelettergrades ();
  9. int showgradedata ();
  10. int arrayavg ();
  11. double arrayave ();
  12. int students[NO_OF_STUDENTS];
  13. int examscores[NO_OF_STUDENTS];
  14. int labscores[NO_OF_STUDENTS];
  15. int s;
  16. int Exam;
  17. int lab;
  18. int main()
  19. {
  20.     int getstudentcount ();
  21.     cout << "Enter the number of students"<< endl;
  22.     for (int s = 0; s <= 10; s++)
  23.     {
  24.         
  25.         int students (0);
  26.         cout << "students[NO_OF_STUDENTS]";
  27.     }
  28.     
  29.     int getexamscores ();
  30.     cout << "Enter the student exam scores"<< endl;
  31.     return 0;
  32.     for(int Exam = 0; Exam <= 10; Exam++)
  33.     {
  34.         int examscores (0);
  35.         cout << "examscores[NO_OF_STUDENTS]";
  36.     }
  37.     
  38.     int getlabscores();
  39.     cout << "Enter the students lab scores" <<endl;
  40. }
Moderator Remark: Added [code] tags

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 92 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.