Arrrays and Bool. Still lost

I'm Having a really hard time with arrays and boolean expressions. This is what i'm supposed to do, but its not clicking.

The main program will read in a group of three integer values which represent a student's SAT scores. The main program will call a function to determine if these three scores are all valid--valid means in the range from 200 to 800, including both end points, and is a multiple of 10
(ends in a 0).
If the scores are all valid, the main program will call a function (which will itself call other functions) to classify the group of three scores in various ways.
Thank you in advance!!

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
  #include <iostream>
using namespace std;

bool isitavalidgroup(int array[]);

int main()
{


int array[3];

cout <<"Please enter 3 SAT scores"<<endl;

for(int i=0; i<3; i++)

cin>>array[i];
cout<<endl;

cin>>array[i];
cout<<endl;

cin>>array[i];

bool isitavalidgroup(array[]);




return 0;

}

bool isitavalidgroup(int array[i])
    {
    for(int i=0;i<3;i++)
       {

        if(int array[i]>=200 && int array[i]<=800 )

           {
            return cout<<"Not Valid group";
           }

        else if (int array[i]/10!=0)

           {
            return cout<<"Not Valid group";
           }
       }
        return cout<<"Valid Group";

    }
Last edited on
closed account (48T7M4Gy)
Please don't post multiple posts on basically the same problem.

Close this one off by green ticking it and go back to the other one to avoid wasting peoples time. If you have a supplementary post of your latest code and any problems associated with it then make it there.
Last edited on
closed account (48T7M4Gy)
http://www.cplusplus.com/forum/beginner/212371/
Topic archived. No new replies allowed.