The program used
A table within a form
- <form name="data">
- <table border="0" align="left" cellpadding="2" width="80%">
Input from user, at the user’s option
- <input type="text" name="height" size="5” style="text-align: right" value="60">
Apply the program to the inputs by hitting the calculate button
- <input NAME="calc" TYPE="button" VALUE="Calculate" onClick="compute(this.form)">
Outputs appear in the table in the form
- <input type="text" name="result3" size="20" style="text-align: right">