Spring 2001
Assignment 28
Due: Friday, April 27
Reading
Read Epilogue: "After The Revolution" in Freiberger and Swaine, Fire in the Valley: The Making of the Personal Computer.
Programming Exercise
Hand in on Friday
Develop a JavaScript program to implement
our Computer Dating Service. You may use the definitions and initialization
of arrays containing student names and responses to our questionnaire which
will be contained in a file Dating.html which.
will be in the Share folder in our CX 103 folder on SERVAL. Make a copy
of this file and then use it as the base to develop your program. You can
also access this information from the lecture notes at Dating.html
.Users
will select their names from a "pop-up" menu listing all the members of
the class. They should then select from another "pop-up" the menu either
the name of a single student or an "All Students" option. If a single name
is chosen, the program returns the number of matches in the questionnaire
answers. If "All" is selected, the program computes the number of matches
between the user and each of the members of the class and returns the name
(or names) of students who had the largest number of matches.
Extra Credit
Add additional features to your Dating.html program. Some possible enhancements are listed below. You may wish to combine them or present a menu of options from which the user may select.
(1) The program reports the names of the two or three students whose answers most closely resembled the user's (so the user has a choice of "compatible" partners).
(2) The program reports, in order of decreasing number of matches, the results of comparing the user's answers to the questionnaire to everyone else in the class.
(3) The programs the specific questions on which you and your most compatible classmate agreed and disagreed; .e.g., "You both prefer raw carrots to carrots" or "You like to sleep with the window open but she doesn't"
(4) The program provides a link to the homepage of the most compatible classmate.
(5) If the user is not a member of the class, the program administers the questionnaire, collects the answers and then finds the most compatible member of the class.