Scientific Calculator
atklinger/Perimeter
By atklinger
To found the Surface Area of Structural Shapes (W, M, S, HP) in Square feet per foot of Length to be painted.
Tagged:
var u2u = function() {
var promptForNumber = function (text, title, default) {
var result = false;
while (result == false) -> result = number(prompt(text, title, default));
result;
};
var d = promptForNumber( "Enter a value for d", "d", 36.74 );
var bf1 = promptForNumber( "Enter a value for bf1", "bf1", 16.655 );
var bf2 = promptForNumber( "Enter a value for bf2", "bf2", 16.655 );
var tw = promptForNumber( "Enter a value for tw", "tw", 11/16 );
var perimeter = 2 * (d + bf1 + bf2 + tw);
var answer = perimeter / 12;
alert(concat("u2u = ", string(answer)));
};
2 Comments
Thank you very much Matthew, for your help and for allow us to have this GREAT Calculator in 2-28-2013- 21:36.
thank you, mr. atklinger, for your example which taught me a lot about script programming.
Sign in to leave a comment