#include #include #include #define SIZE 2 int seed() { //this is to get some better values out of the randomize funktion int i, stime; long ltime; /* get the current calendar time */ ltime = time(NULL); stime = (unsigned) ltime/2; srand(stime); } int menu() { int choice =0; while(choice <1 || choice > 6) { printf("\n\nMenu for lab4\n\n 1. Enter numbers into array\n 2. Print the arrays\n 3. Add the arrays\n 4. Transpose the arrays\n 5. Multiply the arrays\n\n 0.Exit the program\nYour choice:"); scanf("%d",&choice); return choice; } } int enterArray(int (*ptrOne)[SIZE], int(*ptrTwo)[SIZE]) { int choice = 0; while(choice >3 || choice <1) { printf("\n\n Lets add some numbers to the array:\n 1. Manually\n 2. Let the computer randomize some numbers for us\nYour choice: "); scanf("%d", &choice); } int i,j,k; switch(choice) { case 1: { for(k=0; k<2; k++) { for(i=0; i