/* * personnel.c * Project * Chapter 10 * By John Stile * Purpose: Create a program named personnel.c that asks the user for their * birth month, day, and year. * Ask for their first name, last name, and profession. * Store data in a two dimensional arrays name birth and names. * output the data from each. * birth[EMPLOYEE][MONTH][DAY][YEAR] * names[EMPLOYEE][first,last,mid][20 chars earch ]; */ #include #define EMPLOYEE 1 // macro makes program groth easy // use macros to simplify array structure for other programmers #define MONTH birth[ii][0] #define DAY birth[ii][1] #define YEAR birth[ii][2] #define FIRST names[ii][0] #define LAST names[ii][1] #define POSITION names[ii][2] int main(void) { int ii; // declare int counter for the for loop int birth[EMPLOYEE][3]; // declare int array with EMPLOYEE records // 3 elements/record (month, day, year) char names[EMPLOYEE][3][10]; // declare char array with EMPLOYEE records // 3 elements/record (first, last, prof) // 20 chars/elemnet for(ii=0; ii