Given: Catalog and Widget types as shown, select correct COD…

Given: Catalog and Widget types as shown, select correct CODE replacements so that printWidget? will print a Widget item. To avoid a limitation in Canvas, array code below has an extra space before the index. typedef struct { char code[ 5]; int pages; } Catalog ; typedef struct { char item[ 15]; Catalog *cat; float price; } Widget ; void printWidget(Widget w) { printf( ” item: %s\n”, [CODE1] ); printf( ” cat: %s (%i pages)\n”, [CODE2] ); printf( “price: $%f\n”, [CODE3] ); }…  

Part IV Constructed Response Questionsfill in the blank, sh…

Part IV Constructed Response Questionsfill in the blank, short answer 6 points each, 2 questions + 1 survey question [17 points max] These will be manually reviewed to give partial credit. After viewing this information, select next and then select okin the message box that appears since there is no answer to be entered.

Given: typedef struct { int MM; int SS; } Time ; void main()…

Given: typedef struct { int MM; int SS; } Time ; void main() { Time t[2] = {{7,45},{16,30}}; Which of the following statements will print the two item Time array as a start and end time: Start: 7:45 End: 16:30 Note: “%02i” is the printf format string that will zero pad an integer to fill two digits so it gives 04 in stead of 4 . printf(“Start: %2i:%02i End: %2i:%02i \n”, p[0].MM, p[0].SS, p[1].MM, p[1].SS ); printf(“Start: %2i:%02i End: %2i:%02i \n”, p[0]->MM, p[0]->SS, p[1]->MM, p[1]->SS ); printf(“Start: %2i:%02i End: %2i:%02i \n”, t0->MM, t0->SS, t1->MM, t1->SS ); printf(“Start: %2i:%02i End: %2i:%02i \n”, t0.MM, t0.SS, t1.MM, t1.SS );