i need to write a program to cal the gpa this is how far i have reached

# include <iostream>
using namespace std;
int main ()
{
char name [16];
int comp [16];
int maths[16];
int comm [16];
float gpa [16];
int totalmarks [16];

cout<< "enter the marks for" <<name[count] <<endl;
cout<< "enter the computer mark" <<endl;
cin>> comp[count];
cout<< "enter the comm marks" <<endl;
cin >> comm[count];
cout<< "enter the maths marks" <<endl;
cin>> maths[count];

for (count = 0;
{ count <17;
count++)
}
totalmarks = comp[]+ maths[] +comm [];

system ("pause");
return 0;
}
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
# include <iostream>
using namespace std;
int main ()
{
char name [16];
int comp [16];
int maths[16];
int comm [16];
float gpa [16];
int totalmarks [16];

cout<< "enter the marks for" <<name[count] <<endl;
cout<< "enter the computer mark" <<endl;
cin>> comp[count];
cout<< "enter the comm marks" <<endl;
cin >> comm[count];
cout<< "enter the maths marks" <<endl;
cin>> maths[count];

for (count = 0;
{ 
count <17;
count++)
}
totalmarks = comp[]+ maths[] +comm [];

system ("pause");
return 0;
}

that should be easier to see
so whats the problem
Last edited on
Topic archived. No new replies allowed.