Computer Science A - 12/13/99 int Translate(const apvector& info, int index) { int sum = 0; if(info[index]) sum += 4; if(info[index + 1]) sum += 2; if(info[index + 2]) sum += 1; return sum; } void TranslateAll(const apvector& info, apvector& result) { int lcv = 0; for(int index = 0; index < SIZE; index += 3) { result[lcv] = Translate(info, index); lcv++; } }