Projects‎ > ‎

Project 1

HTML-based Unit Conversion Tables

Due Thursday September 27th, at 11:59pm

For this project you are going to write a Python CGI (web) program that allows a user to print unit conversion tables.

Your input will be:
  • Units to convert (e.g., inches to centimeters)
  • Start value
  • End value
  • Step value
When the user presses submit, a table should be returned that displays the conversion table.  After the table is displayed, the user should be able to perform another conversion.

You should support the following conversions:
  • inches to centimeters
  • centimeters to inches
  • Fahrenheit to Celsius
  • Celsius to Fahrenheit
  • bytes to kilobytes
  • kilobytes to bytes
  • bytes to megabytes
  • megabytes to bytes
You should create a projects directory on your portfolio and create a link to your conversion program.

Your program should use the following:
  • Iteration with while loops
  • functions
  • cgi
  • Template strings
Be creative in your presentation of the input page and the resulting output pages.

Comments