C programming. I need help with part f. Write function isOpen to do the following a. Return type integer b. Parameter list i. 1-d character array (i.e. move), size 3 ii. 2-d character array (i.e. board), size 8 rows and 8 cols c. Declare local variable open, data type integer, initialized to FALSE d. Declare local variable rowInt, data type integer, set equal to function call getMoveRow, passing parameter move as an argument e. Declare local variable colInt, data type integer, set equal to function call getMoveCol, passing parameter move as an argument f. Set local variable open equal to TRUE or FALSE based on logic i. If the rowInt is not INVALID and ii. If the colInt is not INVALID and iii. If the element in array board at the row/col location is equal to a SPACE, then the square is open iv. Otherwise, it is not open g. Return variable open Update this code using the intructions I provided nt isOpen(char move[THREE], char board[ROW][COL]) { int open = FALSE; int rowInt = getMoveRow(move); int colInt = getMoveCol(move); return open; }
C programming. I need help with part f.
Write function isOpen to do the following
a. Return type integer
b. Parameter list
i. 1-d character array (i.e. move), size 3
ii. 2-d character array (i.e. board), size 8 rows and 8 cols
c. Declare local variable open, data type integer, initialized to
FALSE
d. Declare local variable rowInt, data type integer, set equal to
function call getMoveRow, passing parameter move as an argument
e. Declare local variable colInt, data type integer, set equal to
function call getMoveCol, passing parameter move as an
argument
f. Set local variable open equal to TRUE or FALSE based on logic
i. If the rowInt is not INVALID and
ii. If the colInt is not INVALID and
iii. If the element in array board at the row/col location is
equal to a SPACE, then the square is open
iv. Otherwise, it is not open
g. Return variable open
Update this code using the intructions I provided
nt isOpen(char move[THREE], char board[ROW][COL])
{
int open = FALSE;
int rowInt = getMoveRow(move);
int colInt = getMoveCol(move);
return open;
}

Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images









