CS 2734
Computer Organization II
void read_array(char *msg, int *inArray, int n);
This function outputs the string in msg if msg is
not 0. It then reads n integers into the array inArray.
void write_array(char *msg, int *outArray, int n);
This function outputs the string in msg if msg is
not 0. It then outputs n integers from the array outArray.
void accumulate_array(int *origArray, int *accumArray, int n);
This function computes the first n elements of the array
accumArray as the accumulation of the elemenets in
origArray
N = 8, A = [2, 4, 6, 8, 10, 12, 14, 16]
B = [2, 6, 12, 20, 30, 42, 56, 72]
prtext. Give the
program to the lab instructor before he starts your check-off procedure.