diff options
Diffstat (limited to '2510/CH17/EX17.1/Ex17_1.sce')
-rwxr-xr-x | 2510/CH17/EX17.1/Ex17_1.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/2510/CH17/EX17.1/Ex17_1.sce b/2510/CH17/EX17.1/Ex17_1.sce new file mode 100755 index 000000000..69e6d1ba3 --- /dev/null +++ b/2510/CH17/EX17.1/Ex17_1.sce @@ -0,0 +1,14 @@ +//Variable declaration: +w1 = 1.5 //Thicknessof fin (in) +L = 12.0 //Length of fin (in) +w2 = 0.1 //Thickness of fin(in) + +//Calculation: +Af = 2*w1*L //Face area of fin (in^2) +At = Af + L*w2 //Total area of fin (in^2) + +//Result: +printf("The face area of the fin is : %.0f in^2 ",Af) +printf("The face area of the fin is : %.2f ft^2 .",Af/12**2) +printf("The total area of the fin is : %.1f in^2 .",At) +printf("The total area of the fin is : %.3f ft^2 .",At/12**2) |