Chapter 5 John Stile Assignemnt 1. Write a printf statment that outputs the following: Mary Place 32.18 years A 86.4% Answer: printf("%s%12.2f years%12c%12.1f%%\n","Mary Place",32.18,'A',86.4); 2. Write a program that includes a series of scanf function lines that read input and store a single character, an integer, a float, and a string into memory, then output all the data. Answer: See program assignment_question2.c 3. Explain the role of each character or string in the following: Answer: scanf("%d", &xxx); // input an integer, store at address of variable xxx scanf("%s", yyy); // input an string, begin to store at element yyy[0] until '\n' encountered while( (xx = getchar()) != "EOF" ) // assign char input to xx // evaluate if xx does not contains an end of file char // if ture, do what is inside the loop, // and reevaluate the while expression printf("Some characters like %%,\n, -10.2%f, 27.3); // prints: Some characters like %, , -10.227.300000