You have 30 minutes for this quiz. You may use any files in our cs account, or class files in ~jkinne/public_html/cs151-2013/code You MAY NOT use a calculator, phone, etc. You MAY NOT use written notes. Regular class will resume after the quiz. Total points: 20 HW points, counts as hw9. ------------------------------------------------ Complete as many of the following as possible. 1) In your handin/hw9II/ directory, use emacs to create a file called digits.c. The program should ask the user to enter a three digit integer (between 100 and 999). The program should then tell the user what the one's digit is, what the ten's digit is, and what the hundred's digit is. Here is an example transcript from running the program. > gcc digits.c -o digits > ./digits Enter an integer between 100 and 999: 628 One's digit is: 8 Ten's digit is: 2 Hundred's digit is: 6 Note: If x is your number, here are formulas to get the digits: one's: x % 10 ten's: (x / 10) % 10 hundred's: (x / 100) 2) In your handin/hw9II/ directory, use emacs to create a file called annoying.c. The program should print the message "Heh, are we there yet?" 10 times (each on a separate line). You should use a loop. 3) In your handin/hw9II/ directory, use emacs to create a file called veryAnnoying.c. The program should ask the user if we are there yet. As long as the user types in "no", it should keep asking. Here's an example transcript. > gcc veryAnnoying.c -o veryAnnoying > ./veryAnnoying Are we there yet? no Are we there yet? no Are we there yet? no Are we there yet? yes Great, thanks. 4) Something extra to work on, in case you finish everything else. I will be surprised if anyone finishes this one... In your handin/hw9II directory, use emacs to create a file called calender.c. The program should ask the user for the name of a month, and then should print a nice display of the days in that month, for the year 2013. Note that January started on a Tuesday. Months with 31 days: January, March, May, July, August, October, December Months with 30 days: April, June, September, November Months with 28 days: February The correct display for January would look something like January, 2013 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31