EE-TNP Assignment 7

Program 1 (75pts.)

Write a program in a language of your choice (except Visual Basic) that runs as a custom Web server on TCP port 6080. The server should provide a front end for HVAC (Heating Ventilation Air Conditioning) System. When a Web browser requests a page it shoudl render a form with current settings. If no settings were set since the program was started then the default resonable settings of yoru choice should be used. When user clicks UPDATE button the new settings should be read form an HTML form and checked for allowed raqnges. If all settings are within allowed ranges they should replace the old sestings and a form with new settigns shouldbe displayed. If one or more settings is invalid or out of range then the form with user data should be redisplayed with an error message so that the user has a chance to correct the problem and submit the form again. Of course, at any point the user may just close the Web browser and decide not to continue with the update.

A simple sample form is provided for your convenience as this course does nto cover extensive use of HTML. Another course entitled "Web Based Control" deals more in depth with user interface for newtworked applications. The vluaes are hardcoded into this sample form. However, your program should insert the actual values in thse pleaces instead. Please use these settings as default values when the program is started. The maximum temperature must be at least two degrees higher than minmum temperature. The allowed range is 40 to 88 for minimum and 42 to 90 for maximum. If no radio button is chosen set the one that is labeled AUTO.

Extra Credit 2 (15pts.)

The form provided above is very simple, and lacks elaborate, nice design layout. Furthermore, the actual system that has network capabilities whould have its own timer, and elaborate programming capabilites that allow individual temperature settings per hour for each day of the week. A simple form was chosen here on purpose so that we focus on the idea rather than spending time on elaborate product functionality. However, if you decide to create your own elaborate interface with many more settings and nice CSS-based layout, and use background color as a feedbaqck for out of range values then that deserves some extra credit.

Homework Submission

Please send the source code as a file attachement, and stop by the instructor office with a laptop to show the running program. Alternatively prepare a demo and ask the instructor to come with you to Jobst 144 compputer lab. Do not send compiled programs (*.exe) as email with such contents is automatically deleted. Send your homework via e-mail to the instructor at olekmali at bradley.edu. Please set the message subject to: tnp-hw6.

Thank you.

web site front local main page local list page print this page   general bookmarks software bookmarks go back close this page copyright info   visitor counter