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.
-
Create a frameset file, with an index on the left. You will learn how to
do this in the labs.
-
Your first content frame should be a study outline. Use lists and tables
as appropriate for clarity.
-
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.
-
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:
-
create a web page to announce the quiz results;
-
edit the PHP code in Notepad or another text editor to fill in explanations
for incorrect answers;
-
at an appropriate place in the HTML document, insert the PHP code in _grade.txt
(use cut and paste); and
-
save the HTML document as grade.php (important: use this filename).
-
Finally, put the following files into your public_html directory:
-
feedback.html
-
guestbook.html
-
_addguest.txt
(rename this file addguest.php)
-
1st.gif
-
2st.gif
-
3st.gif
-
4st.gif
-
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.
-
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.
-
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.).
-
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.