Date: Thu, 23 Feb 2006 12:56:44 -0500 (EST) From: Adrian German To: Craig Shue, Minh Tang Subject: lab today Dear Craig and Minh, Today in lab they should do one thing: Write a program that generates random addition questions and sends those to the user. The random numbers should be between -50 and 50. So a typical question would be: What is 12 + -3? Type your answer here: ______ Push (Proceed) when you're ready. The user's answer is compared against the key and a score is kept about the good and total number of answers. It's reported along with the question above. Write all three versions of the program: PHP/h, PHP/s, CGI/h. Things to take into account/think of/discuss: a) what will be your state? b) how do you retrieve state? c) how do you initialize it if retrieved state is empty? d) what is the user input? e) how do we update state (if retrived state exists) given the input? f) how do we store state? g) how do we report state? h) how do we get ready for more input? Have them post their code and programs under Lab Seven. Thanks and all the best. The exam will be one problem, like the one above. (Only in the written version they need to write code in just one way). ... Adrian