Homework 5
CS101A1
(due Tuesday, April 30, 2002)
(150 points)

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

Material Login Name
Chapter 1 aalaei-blbuse
Chapter 2 blowenb-dandlion
Chapter 3 dandom-eruiz
Chapter 4 esther31-hhnguyen
Chapter 5 hios-jjtwiggy
Chapter 6 jlgrodin-kjfabbro
Chapter 7 klong-mcaucutt
Chapter 8 megconry-ndeutsch
Chapter 10 nebright-ralane
Networking, PHP1, PHP2, PHP3, PHP4 rebsala-shihow
PHP4, PHP5, PHP6, PHP7, PHP8, PHP9, Forms 1 & 2 shilu-xsr17

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 (quiz.html), 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 a visitor submits the quiz. Here is PHP code that will help you do that (_grade.txt). To make it work, you need to do the following:
    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 in _grade.txt (use cut and paste); and
    4. save the HTML document as grade.php (important: use this filename).

    5.  
  8. Finally, put the following files into your public_html directory:
    1. feedback.html
    2. guestbook.html
    3. _addguest.txt (rename this file addguest.php)
    4. 1st.gif
    5. 2st.gif
    6. 3st.gif
    7. 4st.gif
    8. 5st.gif


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

    chmod a+rx *

    except that 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.
     

  9. 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.

  10.  
  11. You are to do all web-page authoring, including editing the PHP files, by yourself, with no outside assistance (excepting your professor and T.F.).

  12.  
  13. 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.