EE-WBC Assignment 3
Program 1 (40pts.)
Develop a Web page with an HTML form that could be used in as Web-based
interface for a networked heating & air conditioning system.
The form should have:
- a pull down choice list with temperatures in the range from 50 to 89 named and labeled TMIN
- a pull down choice list with temperatures in the range from 51 to 90 named and labeled TMAX
- a group of radio buttons named MODE with values and labels: EMHEAT HEAT AUTO COOL OFF
- a check box named and labeled EFFICIENT
- the button named and labeled SET
- four buttons named and labeled PRESET1 through PRESET4
- four button named and labeled RECALL1 through RECALL4
- the button named and labeled DEFAULT
The system should have the following functionality:
- The default (and initial for the first view in a browser) settings should be: 68, 78, AUTO, EFFICIENT (on)
- TMIN cannot be set to a value larger or equal to TMAX - if it is set so, it should return to TMAX-1
- TMAX cannot be set to a value smaller or equal to TMIN - if it is set so, it should return to TMIN+1
- only one radio button can be checked at a time (obvious)
- clicking the SET button should cause remembering the settings in a cookie variable. In the future we may connect it to a CGI script on an embedded server
- leaving the Web page without clicking SET should not cause the new settings to be remebered
- clicking one of the PRESET buttons should cause remembering the settings in a cookie variable
- clicking DEFAULT should return dials to the default values
- clicking one of the RECALL buttons should set the dials to the values stored in the cookie. If values are not stored then use the default values
- returning the Web page should cause automatic restoration of settings stored using SET button, or default setting if nothing was set
- the settings should be remembered by the Web browser between visiting
the Web interface for at least 60 days. Each time the interface is visited
the cookie should be resaved for the next 60 days even if the user does not
click any button. (For the sake of testing use only a few minutes when
developing this interface, and increase it just before submitting.)
Archive your work for the future after it is graded. You might have to
interface to it a server-side program in a future assignment.
Homework Submission
Attach all source code in files with proper names and extensions (*.html,
*.java, *.pl, *.php, .htaccess e.t.c.). Do not ZIP files together or include
compiled files (e.g. *.class). In case of dynamic Web pages (JavaScript or CGI)
or Java applets also send the complete URL (including http://) that points to a
page on your Web site that demonstrates your homework. Send your homework via e-
mail to the instructor at olekmali at bradley dot edu. Please
set the message subject to: web-hw3.
Thank you.