summaryrefslogtreecommitdiff
path: root/3845/CH7/EX7.1/Ex7_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3845/CH7/EX7.1/Ex7_1.sce')
-rw-r--r--3845/CH7/EX7.1/Ex7_1.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3845/CH7/EX7.1/Ex7_1.sce b/3845/CH7/EX7.1/Ex7_1.sce
new file mode 100644
index 000000000..83a644bfe
--- /dev/null
+++ b/3845/CH7/EX7.1/Ex7_1.sce
@@ -0,0 +1,11 @@
+//Example 7.1
+F=75;//Force (N)
+d=25;//Horizontal distance traversed (m)
+theta=35;//Angle (deg)
+W=F*d*cosd(theta);//Work (J)
+W1=W/4184;//Work (kcal)
+printf('Work done = %0.2e J or %0.3f kcal',W,W1)
+ratio=W1/2400;//Ratio of work done to the daily consumption
+printf('\nRatio of work done to the daily consumption = %0.2e',ratio)
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest