Back to DFS's Workshop Page
Back to Agenda Page
Counting Problem
For this problem, you are to cannibalize any available code and write a pair of scripts to count using user-specified limits in decimal, binary, octal, and hexadecimal. Your scripts are to do the following.
- The HTML Page: counting.html
- Ask the user for the lower and upper limits
- Accept input in a form
- Using the Count button, send the data to a PHP script called counting.php
- The PHP Script: counting.php
- Check the low and the high values and swap them if necessary
- Report the actual low and high values
- Create a four-column table with each row containing the corresponding values in the four bases; hexadecimal values are to use capital letters
To see how this could work, view this possible solution.
Hints
© 2005 DFStermole
Created 16 Nov 05
Last Modified 17 Dec 05