See example forms at the CSCI28a web site and in the CSCI 12 examples directory. In this program there will be no action element of the basic form definition tag. We will be using a button to cause the calculating action. Second, as will be demonstrated in class, forms on a page are part of the document object. Also, once a result is calculated, it can be displayed on the page in a form field in a similar way.
Radio buttons are a little odd, but work basically the same way.
See the demo ' radio.htm ' to get started. Fourth, we will develop in class a function that can format the numbers so we don't see Javascripts terrible numeric display.