Scientific Calculator

(public) atklinger/Perimeter

By atklinger atklinger

To found the Surface Area of Structural Shapes (W, M, S, HP) in Square feet per foot of Length to be painted.

Tagged: perimeter shapes surface

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)));
};

spam? | offensive?

2 Comments

Sign in to leave a comment