summaryrefslogtreecommitdiff
path: root/3850/CH47/EX47.5/Ex47_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3850/CH47/EX47.5/Ex47_5.sce')
-rw-r--r--3850/CH47/EX47.5/Ex47_5.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3850/CH47/EX47.5/Ex47_5.sce b/3850/CH47/EX47.5/Ex47_5.sce
new file mode 100644
index 000000000..aedcd876a
--- /dev/null
+++ b/3850/CH47/EX47.5/Ex47_5.sce
@@ -0,0 +1,16 @@
+
+//To Calculate the amount of Electrical Energy obtained in kilowatt-hour
+
+//Example 47.5
+
+clear;
+
+clc;
+
+c=3*10^8;//Speed of light in m/s
+
+m=3.6*10^-3;//Mass of the object in kilograms
+
+E=m*c^2/(3.6*10^6);//Amount of Electrical Energy obtained in kWh
+
+printf("Electrical Energy obtained when a mass of 3.6 g is fully converted into energy = %.0f*10^7 kWh",E*10^-7);