CSCI 242 Homework 10


Master regular expressions.

Due dates

This assignment must be completed by 11:00 PM on Wednesday, 18 April, but I expect most of it to be done in class on 12 and 17  April.

The task

Use regular expressions to write a small application that translates metric prefixed numbers to ordinary number.

You can work on the details, but the main idea is that someone enters a number similar to 242 k in a form and your application parses it according to the SI prefixes and displays the ordinary number, such as 242000.

Because we all like binary, your application should also deal with the SI binary prefixes.

Be sure that your applications properly validates its input while being forgiven on unneeded white space.

Store your page so it can be accessed by the following URL.