Exam questions: There will be some large amount of multiple choice, such as: The format specifier for double is: (a) %d (b) %f (c) %lf (d) %s However, I also need to see if you can really program. That I can't do with multiple choice. I can only do it by asking you to write some code. So, you WILL be required to write at least one complete program on the exam. It will be short. For example: ********************************************************** * (1) Write a complete C program that prompts * * the user to enter two integers, and then * * prints both of the following: * * * * First, the sum of the two integers, * * appropriately labelled. * * * * * * Second, a message, indicating one of the following: * * * * * The first number is larger * * * The second number is larger * * * The numbers are equal * * * ********************************************************** I asked the class.. how many could do it now, top of head, and be 80% sure it was correct? (About 1/3) How many could do it if I gave a few clues? (About another 1/3) I encourage the rest of you to COME SEE ME DURING OFFICE HOURS! You REALLY need to. So, for the middle group, here are some clues (in no particular order): #include scanf printf if ( ) ______ else if ( ) ______ else ______ sum = num1 + num2; /* comment indicating name, date, purpose */ For comments in EXAM programs, use a fake name. (So I can do name-blind grading). +++++++++++++++++ Note to self: make a multiple choice question on the exam to make sure students can identify which one is called the "forward slash" and which one is called the "backslash" forward slash: / backslash: \ forward slash: divide operator, used in http://www.udel.edu Unix directories: /home/usra/d9/55560 backslash: \n (newline in C/C++/Java/JavaScript) Windows/DOS: c:\WINDOWS is a folder