Homework 4
CS101SA1
(due Wednesday, June 27, 2001)

In this final assignment, you are all going to create web pages to help you all study for the Final Exam (which is cumulative). I have divided the class up as follows:
  

Material Students
Chapter 1 Shin, Schonewald
Chapter 2 Grochowalski, Waller
Chapter 3 Mullen, Hoehn
Chapter 4 Daccarett, DeSantis
Chapter 5 Abergel, Manzolini
Chapter 6 DiPietro, Walker, Ma
Chapter 7 Ames, Chi, Seymour
Networking, PHP1, PHP2, PHP3 Ferrante, Barber, Cirillo
PHP4, PHP5, PHP6, PHP7 Sidman, Seo, Flickinger
PHP8, PHP9, Forms 1 & 2 Collins, Krieger, Emerson
For this assignment, you will create (1) a study outline, (2) an on-line quiz, and (3) a feedback page. You should employ frames to keep all the materials organized.
  1. Create a frameset file, with an index on the left. You will learn how to do this in the labs.

  2.  
  3. Your first content frame should be a study outline. Use lists and tables as appropriate for clarity.

  4.  
  5. Your second content file for the main frame should be a quiz with at least 6 questions. Copy this HTML file, edit it in Dreamweaver to add your own questions and answer choices, add your own fonts and styles as you like, and create a link in your frame index to it with the target as the main frame.

  6.  
  7. You will need to create another frame that will score the exam and highlight wrong answers, after the visitor submits the quiz. Here is PHP code that will help you do that. To make it work, you need to insert it into an HTML document and name the document with a PHP extension. Like you did in assignment 4 with the info page,
    1. create a web page to announce the quiz results;
    2. edit the PHP code in Notepad or another text editor to fill in explanations for incorrect answers;
    3. at an appropriate place in the HTML document, insert the PHP code I have given you (use cut and paste); and
    4. save the HTML document as grade.php (important: use this filename).

    5.  
  8. Finally, put the following files to your public_html directory: feedback.html, guestbook.html, addguest.txt (you need to rename this addguest.php), 1st.gif, 2st.gif, 3st.gif, 4st.gif, and 5st.gif.

  9. feedback.html will be your third content file for the main frame. Note that you need to make sure the permissions on the files are

    chmod a+rx *

    and the permission on guestbook.html should be as follows:

    chmod a+rwx guestbook.html

    You may also find it useful to download old_guestbook.html. If you ever want to delete your guestbook entries and start with a blank guestbook, then copy old_guestbook.html over guestbook.html and remember to reset the permissions as follows:

    mv old_guestbook.html guestbook.html
    chmod a+rwx guestbook.html

    NOTE: You should not set the other files in your directory to rwx (read, write, and execute) permission, only guestbook.html.
     

  10. You may work with other people in the class (only persons in this class section!) to compile questions. If you work with others, you should not end up using the same questions on all of your quizzes.

  11.  
  12. You are to do all web-page authoring, including editing the PHP files, by yourself, with no outside assistance (excepting Prof. Crampton).

  13.  
  14. Make sure you test all of the web pages: the frames should work, any included images or other items should appear properly, and the quiz and feedback form should work properly. Be sure to test it from someone else's account, so that you can be sure that it will work for the graders.