ABest Video to AVI MPEG VCD DVD Converter microsoft office visio standard 2010 Altova SchemaAgent 2009 autodesk 3ds max 2010 Nik Software Sharpener Pro 3 photoshop cs5 extended mac Knoll Light Factory for Photoshop 3 MAC autodesk 3ds max 2009 adobe pagemaker 7 creative suite 5.5 web premium mac autodesk autocad structural detailing 2011 PCTools Spyware Doctor 2010 for Windows windows 7 ultimate (64 bit) adobe robohelp 9 microsoft office 2011 home & business mac Marketcircle Billings 3 MAC adobe premiere pro cs3 Final Exam: CS328

Final Exam: CS 328 Spring 2007

Part I: Processing Forms in Perl

In assignment 5, you created a picnic survey form. You're going to begin with this form, and modify it as follows:

  1. Correct Errors/Problems: You must correct any errors or problems that I indicated when I graded assignment 5.
  2. Form Validation: You must perform form validation on all text fields and areas.
  3. Form Fields: Your form must have these fields (they're are new ones) New fields are in bold:
  4. Perl Processing: Create a perl script that processes all of the information. You should print the information in a table with each piece of information in a separate row.
    If the user is less than 18, you must make the row background a different color and print an error message after the information.
    If more than 50 people will be in attendance, you must make the row background a different color and print an error message after the information.
    If you printed a warning message, summarize the problems after you've finished the table and indicate that the person should contact the park office. If there are no problems, print a message indicating that the park office will contact them regarding the availability of the chosen park at the designated times and date. Print out the park, times and date in your message.

Part II: The File Read/Write & Count program.

The HTML FORM:

Create a simple public opinion survey that contains three questions. Pick events from the news for your questions, for example, Do you approve of the President's handling of the Iraq war?

Each question should have four possible answers: Agree, Neutral, Disagree, or No Opinion. The later is the default response. (Hint: Use Radio buttons)

The Results File: Create a file to hold the tallies for each question. Divise and appropropriate decoding scheme and tell me what it is in your email.

The Perl Script. Your perl script should.

  1. Summarize current responses. Summarize the user's responses to the questions.
  2. Read file and print results to date. Read the file and create a table with the responses to the selections for each question. Make sure that you give the question. (Hint: See the Muskrat mounds survey in your book or the Langauge survey we'll do in class.
  3. Write file Adding the user's responses. Write the file so that the user's results are added to the survey results.

Other:
  1. As usual you will be judged on your use of structured programming techniques (variable names, documentation, test data, program structure).
  2. Include your perl source code and the url's of your programs.
  3. This exam is due: Final Exam due Friday April 27, by 10:00