JavaScript calculator for resource allocation problem

I wrote a little program in JavaScript that solves a discrete resource allocation problem for Oliver Yu’s Computer-Based Decision Models.

This program shows off some of the power of JavaScript (technically, ECMAScript). The power isn’t in the language itself, which has plenty of limitations and oddities… the power is how the language is used across the Internet.

Every computer and many phones have JavaScript-enabled web browsers, so they can all run this calculator offline by simply loading the HTML file. No need to install anything first. The JavaScript functions can easily be re-used by some other program.

Here is a link to the calculator, which I can’t include directly on a WordPress blog. You should be able to use Save As to write it to a local HTML file that can be used without any Internet connection.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>