#include #include #define LINE_LENGTH 40 int main() { struct oz { char actor[18]; int age; char role[16]; }; struct oz cast[6]; int line,x; strcpy(cast[0].actor,"Judy Garland"); cast[0].age = 17; strcpy(cast[0].role,"Dorothy"); strcpy(cast[1].actor,"Ray Bolger"); cast[1].age = 35; strcpy(cast[1].role,"Scarecrow"); strcpy(cast[2].actor,"Bert Lahr"); cast[2].age = 44; strcpy(cast[2].role,"Cowardly Lion"); strcpy(cast[3].actor,"Jack Haley"); cast[3].age = 40; strcpy(cast[3].role,"Tin Woodsman"); strcpy(cast[4].actor,"Margaret Hamilton"); cast[4].age = 37; strcpy(cast[4].role,"Wicked Witch"); strcpy(cast[5].actor,"Frank Morgan"); cast[5].age = 49; strcpy(cast[5].role,"The Wizard"); puts("Wizard of Oz Database!\n"); /* draw the table heading */ printf("%-18s %3s %-15s\n","Actor","Age","Role"); for(line=0;line