diff options
Diffstat (limited to '3845/CH7/EX7.12/Ex7_12.sce')
-rw-r--r-- | 3845/CH7/EX7.12/Ex7_12.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/3845/CH7/EX7.12/Ex7_12.sce b/3845/CH7/EX7.12/Ex7_12.sce new file mode 100644 index 000000000..70445addf --- /dev/null +++ b/3845/CH7/EX7.12/Ex7_12.sce @@ -0,0 +1,8 @@ +//Example 7.12
+P=0.200;//Power rating (kW)
+t=6*30;//Duration of use; 6hours per day*30days (h)
+E=P*t;//Energy consumed (kWh)
+cost=E*0.120;//Cost per month, if cost of electricity is $0.120/kWh
+printf('Cost of running the computer for the given duration = $%0.2f per month',cost)
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest
|