From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2510/CH17/EX17.1/Ex17_1.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 2510/CH17/EX17.1/Ex17_1.sce (limited to '2510/CH17/EX17.1/Ex17_1.sce') 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) -- cgit