using system function in c++ to create a coursework submission system

I looked at the various forums on thissite and i found a few that helped me and i looked at tuturials but I am still lost and confused.. we have to write a program that allows students to submit their assignments to be graded then the teacher can view the assignment grade it and comment if necessary the assign,ment title is coursework submission system... i doen different variations that i will post please help if possible
code1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using namespace std;

double assignment1; 
double assignment2;
double assingment3;
double assignment4;
double assignment5;
double total;
double assignmentavg;

void int main()
{
    system("color 0a"); 
    system("cls"); 
    cout << "-------------------------------------------" << endl;
    cout << "|WELCOME TO STUDENT COURSE WORK SUBMISSION SYSTEM!!|" << endl;
    cout << "-------------------------------------------" << endl << endl;


const int NO_OF_STUDENTS = 25;
int getstudentcount ();
int getassignmentscores ();
int calculatepointgrades ();
int calculatelettergrades ();
int showgradedata ();
int arrayavg ();
double arrayave ();
int students[NO_OF_STUDENTS];
int assignmentscores[NO_OF_STUDENTS];
int A;
int assignment;
int main()

{
int getstudentcount ();
cout << "Enter the number of students" << endl;

for (int s = 0; s <= 25; s++)

{
int students (0);

return 0;
cout << "students[NO_OF_STUDENTS]";

}
int getassignmentscores ();
cout << "Enter the student assignment scores";
return 0;
for(int assignment = 0; assignment <= 10; assignment++)
{
int assignmentcores (0);
cout << "assignmentscores[NO_OF_STUDENTS]";
}

return 0;
}


code2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
const int numStudents = 25, numAssign = 10;
const int totalGrades = 10;


int menu();
int main();

int menu()
{
    char choice;
    cout << "S for student or T for teacher"<<endl;
    cout << "O. Output Data."<<endl;
    cout << "E. Exit"<< endl << endl;
    cin >> choice;
    cout << endl << endl;
    return choice = main();
}

int calcgrade(double average, char& grade)
{
    if (average <= 59)
    grade = 'F';
    else if (average <= 69 && average >= 60)
    grade = 'D';
    else if (average <= 79 && average >= 70)
    grade = 'C';
    else if (average <= 89 && average >= 80)
    grade = 'B';
    else if (average >= 90 && average <= 100)
    grade = 'A';
    return 0;
}
void inputgrades() {
    int assignG;
    double  agrade[10];

{
  
 cout << "How many assignment grades will you add per student?";
    cin >> assignG;
    for (int i = 1; i <= assignG; i++) {
         cout << "Enter assignment grade: " << endl;
         cin >> agrade[i];
    }

const int NO_OF_STUDENTS = 25;
int getstudentcount ();
int getassignmentscores ();
int calculatepointgrades ();
int calculatelettergrades ();
int showgradedata ();
int arrayavg ();
double arrayave ();
int students[NO_OF_STUDENTS];
int assignmentscores[NO_OF_STUDENTS];
int A;
int assignment;
int main()

{
int getstudentcount ();
cout << "Enter the number of students" << endl;

for (int s = 0; s <= 25; s++)

{
int students (0);

return 0;
cout << "students[NO_OF_STUDENTS]";

}
int getassignmentscores ();
cout << "Enter the student assignment scores";
return 0;
for(int assignment = 0; assignment <= 10; assignment++)
{
int assignmentcores (0);
cout << "assignmentscores[NO_OF_STUDENTS]";
}

return 0;
}


sorry all the code is not together
Last edited on
Well, we can help you with specific problems, but the code you posted is 140 lines worth of problems. Often enough one can only guess what you were actually trying to do. Unfortunately, this is not something that you can do with a few days of reading tutorials, especially since I assume that handing in assignments is supposed to be done over the internet.
If you have enough time to finish this project, you should buy the C++ Primer and properly learn C++. That's the only realistic way you can finish this on your own.
If you don't have the time, your best bet is to pay someone to do it for you. It's not too much of a problem for an experienced programmer, so the price should stay at reasonable levels.
Last edited on
Topic archived. No new replies allowed.